firstOrNull

inline fun <T> MongoIterable<T>.firstOrNull(crossinline predicate: (T) -> Boolean): T?

Returns the first element matching the given predicate, or null if element was not found.