{foreach $menus as $one}
{/foreach}
{foreach $menus as $one}{notempty name='one.sub'} {/notempty}{/foreach}