`.getOrElse(Option.empty)` can probably just be `.flatten`, so `result.headOption.flatten`