/**
  * Returns true if there is a submenu with items for the page id, $uid
  * Used by the item states "IFSUB", "ACTIFSUB" and "CURIFSUB" to check if there is a submenu
  *
  * @param	integer		Page uid for which to search for a submenu
  * @return	boolean		Returns true if there was a submenu with items found
  * @access private
  */
 function isSubMenu($uid)
 {
     // Looking for a mount-pid for this UID since if that exists we should look for a subpages THERE and not in the input $uid;
     $mount_info = $this->sys_page->getMountPointInfo($uid);
     if (is_array($mount_info)) {
         $uid = $mount_info['mount_pid'];
     }
     $recs = $this->sys_page->getMenu($uid, 'uid,pid,doktype,mount_pid,mount_pid_ol,nav_hide,shortcut,shortcut_mode');
     foreach ($recs as $theRec) {
         if (!t3lib_div::inList($this->doktypeExcludeList, $theRec['doktype']) && (!$theRec['nav_hide'] || $this->conf['includeNotInMenu'])) {
             // If a menu item seems to be another type than 'Not in menu', then return true (there were items!)
             return TRUE;
         }
     }
 }