private function checkIfBool($string) { $string = strtolower($string); return in_array($string, array('true', 'false')); }