Any reason not to just use `each_with_index` here?