Use array.forEach instead of for in