Ah I see you do. Then the smart one liner would be
```ruby
@notification_counts_by_type = Hash[Notification.types.keys.zip(current_user.unread_notifications.group_by(&:type).map {|k, v| [k, v.count] }.values_at(Notification.types.values))]
```

which isn't really smart, even if we explode it into multiple lines with locals. So I guess we can stick with your version, just turn the `Hash.new(0)` back into `{}` ;)