[BUGFIX] Fix break statement to break out of all foreach loops