Better use Array.forEach on an array