You're generating the object keys twice. store the values above in a variable then use the array in an indexed `for()` loop in the `else`.