Heh, this seems weird... I would have opted for doing the string comparison in ruby:

```ruby
if `#{branches_cmd.call}`.empty?
```

Either way works.