Please use unless instead of if not

```ruby
return nil unless res
```