public static function isArray($object, $native = false)
    {
        return $native
            ? is_array($object)
            : is_array($object) || $object instanceof \ArrayAccess;
    }
public static function isArray($object, $native = false)
    {
        return $native
            ? is_array($object)
            : is_array($object) || $object instanceof \ArrayAccess;
    }
public static function isArray ( $ object , $ native = false ) { return $ native ? is_array ( $ object ) : is_array ( $ object ) || $ object instanceof \ ArrayAccess ; }
Returns true if object is an array or usable like an array. If the optionnal native parameter is set to true, it
will only return true if object is a native array.

@category Object Functions

@param mixed $object the object
@param bool $native optional, if true will no consider instances of ArrayAccess as arrays

@return bool
Returns true if object is an array or usable like an array . If the optionnal native parameter is set to true it will only return true if object is a native array .