original_string: public function has_items() {
          if ($this->duringinstall) {
              return false;
          } else if ($this->hasitems !== false) {
              return true;
          }
          if (count($this->children) > 0 || count($this->prependchildren) > 0) {
              // There have been manually added items - there are definitely items.
              $outcome = true;
          } else if (!$this->ignoreactive) {
              // We will need to initialise the navigation structure to check if there are active items.
              $this->page->navigation->initialise($this->page);
              $outcome = ($this->page->navigation->contains_active_node() || $this->page->settingsnav->contains_active_node());
          }
          $this->hasitems = $outcome;
          return $outcome;
      }
code: public function has_items() {
          if ($this->duringinstall) {
              return false;
          } else if ($this->hasitems !== false) {
              return true;
          }
          if (count($this->children) > 0 || count($this->prependchildren) > 0) {
              // There have been manually added items - there are definitely items.
              $outcome = true;
          } else if (!$this->ignoreactive) {
              // We will need to initialise the navigation structure to check if there are active items.
              $this->page->navigation->initialise($this->page);
              $outcome = ($this->page->navigation->contains_active_node() || $this->page->settingsnav->contains_active_node());
          }
          $this->hasitems = $outcome;
          return $outcome;
      }
code_tokens: public function has_items ( ) { if ( $ this -> duringinstall ) { return false ; } else if ( $ this -> hasitems !== false ) { return true ; } if ( count ( $ this -> children ) > 0 || count ( $ this -> prependchildren ) > 0 ) { // There have been manually added items - there are definitely items. $ outcome = true ; } else if ( ! $ this -> ignoreactive ) { // We will need to initialise the navigation structure to check if there are active items. $ this -> page -> navigation -> initialise ( $ this -> page ) ; $ outcome = ( $ this -> page -> navigation -> contains_active_node ( ) || $ this -> page -> settingsnav -> contains_active_node ( ) ) ; } $ this -> hasitems = $ outcome ; return $ outcome ; }
docstring: Quick check to see if the navbar will have items in.
  
  @return bool Returns true if the navbar will have items, false otherwise
docstring_tokens: Quick check to see if the navbar will have items in .