Style: more scala-ish way to return from function.