protected function getBooleanValue($path)
    {
        $normalizedPath = strtolower($path);

        if (in_array($normalizedPath, ['true', 'on', 'yes'])) {
            return true;
        }

        if (in_array($normalizedPath, ['false', 'off', 'no'])) {
            return false;
        }

        return null;
    }
protected function getBooleanValue($path)
    {
        $normalizedPath = strtolower($path);

        if (in_array($normalizedPath, ['true', 'on', 'yes'])) {
            return true;
        }

        if (in_array($normalizedPath, ['false', 'off', 'no'])) {
            return false;
        }

        return null;
    }
protected function getBooleanValue ( $ path ) { $ normalizedPath = strtolower ( $ path ) ; if ( in_array ( $ normalizedPath , [ 'true' , 'on' , 'yes' ] ) ) { return true ; } if ( in_array ( $ normalizedPath , [ 'false' , 'off' , 'no' ] ) ) { return false ; } return null ; }
Tries to interpret the given path as boolean value, either returns the boolean value or null.

@param $path
@return boolean|null
Tries to interpret the given path as boolean value either returns the boolean value or null .