Hooray for Swift 5! Immediately had a use for the new Result type.