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