<%# no need for thumbnails unless there is more than one image %> <% if (@product.images + @product.variant_images).uniq.size > 1 %> <% end %>