diff -Naur jquerymenu/jquerymenu.module jquerymenu-new/jquerymenu.module
--- jquerymenu/jquerymenu.module	2009-02-17 21:51:36.000000000 +0000
+++ jquerymenu-new/jquerymenu.module	2009-03-29 20:32:04.000000000 +0100
@@ -163,14 +163,17 @@
 }
 
 function theme_menu_creation_by_array($tree, $trail) {
-  //We create the shell to hold the menu outside the recursive function.
-  // Add a div that only shows up for that pesky IE so that we can style it into obedience.
-  $output  = '<!--[if IE]><div class="ie"><![endif]-->';
-  $output .= '<ul class="menu jquerymenu">';
-  $output .= recursive_link_creator($tree, $trail);
-  $output .= '</ul>';
-  $output .= '<!--[if IE]></div><![endif]-->';
-  return $output;
+  $menu_output = recursive_link_creator($tree, $trail);
+  if($menu_output) {
+    //We create the shell to hold the menu outside the recursive function.
+    // Add a div that only shows up for that pesky IE so that we can style it into obedience.
+    $output  = '<!--[if IE]><div class="ie"><![endif]-->';
+    $output .= '<ul class="menu jquerymenu">';
+    $output .= recursive_link_creator($tree, $trail);
+    $output .= '</ul>';
+    $output .= '<!--[if IE]></div><![endif]-->';
+    return $output;
+  }
 }
 
 function jqmenu_trail_creator() {
