<% if(typeof row !== 'undefined' ) { %> <% _.each(row, function(field){ %> <%=field%> <% }); %> <% } %>