Use forEach properly insted of for (item in items)