{if !empty($category)} {/if} {if sizeof($subcategories) > 0} {/if}