public static function hasAlias(string $alias): bool
    {
        // empty OR not an alias
        if (!$alias || $alias[0] !== '@') {
            return false;
        }

        return isset(self::$aliases[$alias]);
    }
public static function hasAlias(string $alias): bool
    {
        // empty OR not an alias
        if (!$alias || $alias[0] !== '@') {
            return false;
        }

        return isset(self::$aliases[$alias]);
    }
public static function hasAlias ( string $ alias ) : bool { // empty OR not an alias if ( ! $ alias || $ alias [ 0 ] !== '@' ) { return false ; } return isset ( self :: $ aliases [ $ alias ] ) ; }
Is alias exist ?

@param string $alias

@return bool
@throws \InvalidArgumentException
Is alias exist ?