<% if (data.product && data.product.images && data.product.images.length > 0) { %>
<% data.product.images.forEach(function(image, index) { %> <% }); %>
<%= data.product.name %>
1 / <%= data.product.images.length %>
<% if (data.product.images.length > 1) { %> <% } %>
<% } else { %>
<%= data.product.name %>
<% } %>