public static function validatePathAgainstAuthority($path_string, Authority $authority = null)
    {
        self::checkPathIsString($path_string);

        if (!empty((string) $path_string) && !empty((string) $authority)) {
            return self::startsWithSlash($path_string);
        }

        return true;
    }