for..in syntax should only be used to iterate over objects, not arrays.