public static function isEmpty(array $array)
    {
        $flattened = static::flatten($array);

        foreach ($flattened as $item) {
            if (null === $item || '' === $item) {
                continue;
            } else {
                return false;
            }
        }

        return true;
    }
public static function isEmpty(array $array)
    {
        $flattened = static::flatten($array);

        foreach ($flattened as $item) {
            if (null === $item || '' === $item) {
                continue;
            } else {
                return false;
            }
        }

        return true;
    }
public static function isEmpty ( array $ array ) { $ flattened = static :: flatten ( $ array ) ; foreach ( $ flattened as $ item ) { if ( null === $ item || '' === $ item ) { continue ; } else { return false ; } } return true ; }
Tests if an array is empty.

"Empty" here means that every element contains either an
empty string, or the value `null`. Other values that would
be considered `empty` by the `empty()` function are *not*
considered as such here. That means that the array
```
['', null, false]
```
is *not* empty.

@param array $array
@return boolean
Tests if an array is empty .