The valus is initialised to false, no need to loop through setting every value to false again.
Reomve iterator left lying around during refactoring.