public static function wrap($object): array
    {
        if (null === $object) {
            return [];
        }

        if (is_array($object) && !self::isAssoc($object)) {
            return $object;
        }

        return [$object];
    }
public static function wrap($object): array
    {
        if (null === $object) {
            return [];
        }

        if (is_array($object) && !self::isAssoc($object)) {
            return $object;
        }

        return [$object];
    }
public static function wrap ( $ object ) : array { if ( null === $ object ) { return [ ] ; } if ( is_array ( $ object ) && ! self :: isAssoc ( $ object ) ) { return $ object ; } return [ $ object ] ; }
Wraps its argument in an array unless it is already an array

@example
Arr.wrap(null)      # => []
Arr.wrap([1, 2, 3]) # => [1, 2, 3]
Arr.wrap(0)         # => [0]

@param mixed $object
@return array
Wraps its argument in an array unless it is already an array