I came across Swift code something like this today. The author is long gone.
func doSomething(string: String) { ... if doMore(string: String) != nil