     /// Returns a `URL` with any instances of ".." or "." removed from its path.
     public var standardized : URL {
         // The NSURL API can only return nil in case of file reference URL, which we should not be
-        if let result = _url.standardized.map({ URL(reference: $0 as NSURL) }) {
-            return result
-        } else {
-            return self
-        }
+        guard let result = _url.standardized.map({ URL(reference: $0 as NSURL) }) else { return self }
+        return result
     }
     
     /// Standardizes the path of a file URL.

    ///
    /// Returns `nil` if a `URL` cannot be formed with the string (for example, if the string contains characters that are illegal in a URL, or is an empty string).
    public init?(string: __shared String) {
        guard !string.isEmpty else { return nil }
        
        if let inner = NSURL(string: string) {
            _url = URL._converted(from: inner)
        } else {
            return nil
        }
    }
    
    /// Initialize with string, relative to another URL.
    ///
    /// Returns `nil` if a `URL` cannot be formed with the string (for example, if the string contains characters that are illegal in a URL, or is an empty string).
    public init?(string: __shared String, relativeTo url: __shared URL?) {
        guard !string.isEmpty else { return nil }
        
        if let inner = NSURL(string: string, relativeTo: url) {
            _url = URL._converted(from: inner)
        } else {
            return nil
        }
    }
    
    /// Initializes a newly created file URL referencing the local file or directory at path, relative to a base URL.

    /// If the `isFileURL` is false, this method returns `self`.
    public var standardizedFileURL : URL {
        // NSURL should not return nil here unless this is a file reference URL, which should be impossible
        guard let result = _url.standardizingPath.map({ URL(reference: $0 as NSURL) }) else { return self }
        return result
    }
    
    /// Resolves any symlinks in the path of a file URL.
