Add breaking boolean check to for statement