<?php if (isset($custom_links)) { ?>
<div id="secondaryNav"><?php print theme('links', $custom_links) ?></div>
<?php } ?>
I've create a custom menu (machine name: menu-secondary-menu). And I want to display it in page.tpl. My condition is to show this this menu only if it has links added. I searched and found the above code. Please help me in customizing to my need.