`heap.each_with_index.all?(&:==)` reads easier