Short circuit Array.forEach like calling break