public static function isEmpty($resource)
    {
        if (!self::isValid($resource) &&
            null !== $resource) {
            return false;
        }

        return String::isEmpty($resource);
    }
public static function isEmpty($resource)
    {
        if (!self::isValid($resource) &&
            null !== $resource) {
            return false;
        }

        return String::isEmpty($resource);
    }
public static function isEmpty ( $ resource ) { if ( ! self :: isValid ( $ resource ) && null !== $ resource ) { return false ; } return String :: isEmpty ( $ resource ) ; }
Check if resource is empty

@param resource $resource The resource

@return bool
Check if resource is empty