Optimized a forEach with for/break, added indicator flags if map is used

Unless there is a need for google map, its hidden.