{foreach from=$menu item=item} {if $item.link|notnull} {/foreach}