you don't need `return 0 if votes.empty?`
```ruby
[].inject(0) { } # => 0
```

it is a small code cleanup.  also, votes.empty? executes a separate sql query from votes.inject.
votes.empty? executes a count query (check your console logs)
votes.inject executes a select and loads all the objects.

so you can save a query here.