original_string: protected function selected_parent_exists($path) {
          $parentpath = progressive_parser::dirname($path);
          while ($parentpath != '/') {
              if ($this->path_is_selected($parentpath)) {
                  return $parentpath;
              }
              $parentpath = progressive_parser::dirname($parentpath);
          }
          return false;
      }
code: protected function selected_parent_exists($path) {
          $parentpath = progressive_parser::dirname($path);
          while ($parentpath != '/') {
              if ($this->path_is_selected($parentpath)) {
                  return $parentpath;
              }
              $parentpath = progressive_parser::dirname($parentpath);
          }
          return false;
      }
code_tokens: protected function selected_parent_exists ( $ path ) { $ parentpath = progressive_parser :: dirname ( $ path ) ; while ( $ parentpath != '/' ) { if ( $ this -> path_is_selected ( $ parentpath ) ) { return $ parentpath ; } $ parentpath = progressive_parser :: dirname ( $ parentpath ) ; } return false ; }
docstring: Returns the first selected parent if available or false
docstring_tokens: Returns the first selected parent if available or false