Fair enough, is there some other way that the repeated assignment of `false` can be extracted?