Avoid using break statement in FOR loops (PHP) | CAST Appmarq