groupBy returns an array, not a value