Will this read better like:
```ruby
def points(options = {})
  if (category = options[:category])
    scores.where(category: category).first.try(:points) || 0
  else
    scores.inject(0) { |sum, score| sum + score.points }
  end
end
```