Please favor unless and positive conditions when there isn't else:

```ruby
unless res and res.code == 200 and res.body and res.body.to_s.include?('error_noprivilege')
```