public function submenuIf($condition, $header, $menu = null) { if ($condition) { $this->submenu($header, $menu); } return $this; }