nextOrNull

fun <T> Iterator<T>.nextOrNull(): T?

Return

the next element if it exists, null otherwise