Rephrase loop so it doesn't leave unused bools around in Release mode.