original_string: public function hasChildNodes($dsId = null)
      {
          if (!$dsId) {
              // use root as default
              $dsId = $this->rootDsId;
          }
  
          $childrenDsIds = $this->getChildrenDsIds($dsId);
          $hasChildren = count($childrenDsIds) > 0;
  
          return $hasChildren;
      }
code: public function hasChildNodes($dsId = null)
      {
          if (!$dsId) {
              // use root as default
              $dsId = $this->rootDsId;
          }
  
          $childrenDsIds = $this->getChildrenDsIds($dsId);
          $hasChildren = count($childrenDsIds) > 0;
  
          return $hasChildren;
      }
code_tokens: public function hasChildNodes ( $ dsId = null ) { if ( ! $ dsId ) { // use root as default $ dsId = $ this -> rootDsId ; } $ childrenDsIds = $ this -> getChildrenDsIds ( $ dsId ) ; $ hasChildren = count ( $ childrenDsIds ) > 0 ; return $ hasChildren ; }
docstring: Has node children?
  
  @param string $dsId (Optional) ds_id of node to check childrens
  
  @return bool
docstring_tokens: Has node children?