Change for..in to Array.forEach