Added if on $menu to prevent errors