Has anyone encountered this issue?
#foreach($e in $entities)
#if($e.id != "" && $count < $entities.size() && $count <=30)
<a class="productBlock" href="$e.pageUrl?icid=ChrLPGiftRecsMonogrammed"> <img title="$e.name" alt="$e.name" src="$e.thumbnailUrl"></a>
#set($count = $count + 1)