Scala: Idiomatic processing of an Option