{$count=0} {$emptyCount=0}
{if !empty($itemgroups)}
    {foreach from=$itemgroups item="group"}{assign var="count" value=$count+1}{if $group->count_childs==0 && $group->description|strlen < 30}{assign var="emptyCount" value=$emptyCount+1}{/if}
  • {/foreach}
{/if}
{if !empty($itemgroups)}{foreach from=$itemgroups item="group"} {$group->name|strip_tags} {/foreach} {/if}
{if $count!=$emptyCount} {/if}