getBool

boolean getBool(key, defaultValueBool)

Returns the boolean value (True or False) associated with key, or defaultValueBool if the key does not exist or the string was not "true" or "false".