Or... 

```ruby
image = find_image_with_regex(options[:src])
image.nil? ? false : locator.concat("[@src='#{image}']")
```

play \trololo