Do not alter an Array while looping through it