Is the `.nil?` necessary here? I think assignment returns the result assigned. So:

```ruby
x = nil
# => nil
```