This can be better written using [`presence`)](http://api.rubyonrails.org/classes/Object.html#method-i-presence).

``` ruby
nickname.presence || name
```