{foreach $children as $Child} {assign var=hasUrl value=1} {if !$Child->getUrl()} {assign var=hasUrl value=0} {/if}