```ruby
  res && res['result'] == true ? true : false
```
and 
```ruby
  res && res['result'] == true
```
are the same thing, I'll change that when merging