Avoid two breaks in one loop.