```ruby
if options.delete(:has_many_through)
```

would be simpler