here's my change to ensure array iteration works even if arrays have other properties