Could you change this to use .forEach()? Not a huge fan of using for loops for this sort of thing unless absolutely necessary