Returns true if the key has a value which is a bool. Empty or null value returns false.
bool validBool(String key) { final dynamic value = valueMap[key]; return value != null && value is bool; }