For performance reasons, you should just use a potentially null value instead of Option here.

`var nextItem: (K, C) = null`