This should be:

```ruby
Prize.count(prize_provider_id: provider.id) > 0
```

The way it is written (and I might be wrong about this), `prize.*` will be selected & sent across the wire, then the result set array will be counted. If you pass conditions to the count method, then the counting happens in the database & less wire traffic occurs.