add if(items.isEmpty) Future.value(None) here and you can assume non-empty the rest of the way.