Reinstating the earlier condition in Array#grouping