Removes array forEach usage