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

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

        return true;
    }