src/Traits/Collections.php
public static function isEmpty($value): bool
    {
        return (!__::isArray($value) && !__::isObject($value)) || count((array)$value) === 0;
    }
public static function isEmpty($value): bool
    {
        return (!__::isArray($value) && !__::isObject($value)) || count((array)$value) === 0;
    }
public static function isEmpty ( $ value ) : bool { return ( ! __ :: isArray ( $ value ) && ! __ :: isObject ( $ value ) ) || count ( ( array ) $ value ) === 0 ; }
Check if value is an empty array or object. We consider any non enumerable as empty.

@usage __::isEmpty([]);
>> true

@param mixed $value The value to check for emptiness.

@return bool
Check if value is an empty array or object . We consider any non enumerable as empty .