Only toggle main menu if item has children