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

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

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

@param mixed $string The string

@return bool
Check if string is empty