forEach on undefined