No problem. I'm pretty fond of reduce() in general, but it leads to making more queries than needed here.