override def hasNext: Boolean = mergeHeap.exists(!_.pairs.isEmpty)