```ruby
POSSIBLE_FAILURES.detect do |failure|
  $exit_status = 1 if text =~ failure # automatically returns once a match is found
end```