original_string: protected function checkListParents($update = true)
      {
          if (empty($this->getModelInformation()->list->parents)) {
              return $this;
          }
  
          $this->retrieveActiveParentFromSession();
          $this->collectListParentHierarchy();
  
          if ($update) {
              $this->updateActiveParent();
          }
  
          $this->enrichListParents();
  
          return $this;
      }
code: protected function checkListParents($update = true)
      {
          if (empty($this->getModelInformation()->list->parents)) {
              return $this;
          }
  
          $this->retrieveActiveParentFromSession();
          $this->collectListParentHierarchy();
  
          if ($update) {
              $this->updateActiveParent();
          }
  
          $this->enrichListParents();
  
          return $this;
      }
code_tokens: protected function checkListParents ( $ update = true ) { if ( empty ( $ this -> getModelInformation ( ) -> list -> parents ) ) { return $ this ; } $ this -> retrieveActiveParentFromSession ( ) ; $ this -> collectListParentHierarchy ( ) ; if ( $ update ) { $ this -> updateActiveParent ( ) ; } $ this -> enrichListParents ( ) ; return $ this ; }
docstring: Checks and loads list parent from the session.
  
  @param bool $update  whether to check for updates through the 'parent' request param
  @return $this
docstring_tokens: Checks and loads list parent from the session .