<% if (groups.length) { %> <%- label %>: <% _.each(groups, function (group, index, list) { %> <%- group.label %> <%- list.length > index + 1 ? ',' : '' %> <% }); %> <% } %>