This `each { ... if ... break }` should be recoded as `if any? { ... } then ... `