{if $_categories} {foreach key=k name=a item=i from=$_categories} {/foreach} {/if}