I would use http://ruby-doc.org/core-2.0.0/String.html#method-i-lines here instead of split. Maybe something like: 

```ruby
from ("jls -n").lines >= 1
```ruby