Maybe a map here instead? I tend to stay away from forEach and side effects.