ifOnlyOneOrNull

fun <T> Iterable<T>.ifOnlyOneOrNull(predicate: (T) -> Boolean): T?