This `for` and the next one should use `Array.forEach`