Call Array.prototype.forEach instead of undefined