public static function isBoolean($object, $native = false)
    {
        return $native
            ? is_bool($object)
            : is_bool($object) || $object instanceof \SplBool;
    }
public static function isBoolean($object, $native = false)
    {
        return $native
            ? is_bool($object)
            : is_bool($object) || $object instanceof \SplBool;
    }
public static function isBoolean ( $ object , $ native = false ) { return $ native ? is_bool ( $ object ) : is_bool ( $ object ) || $ object instanceof \ SplBool ; }
Returns true if object is a Boolean. If the optionnal native parameter is set to true, it will only return true
if object is a native boolean.

@category Object Functions

@param mixed $object the object
@param bool $native optional, if true will not consider instances of SplBool as integers

@return bool
Returns true if object is a Boolean . If the optionnal native parameter is set to true it will only return true if object is a native boolean .