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