Checks if string is boolean.
static bool isBool(String value) { if (isNull(value)) { return false; } return (value == 'true' || value == 'false'); }