/**
  * {@inheritdoc}
  */
 public function hasChildren()
 {
     if (!$this->current || !$this->current->isDir()) {
         return false;
     }
     $path = $this->current->getFullPath();
     if (!isset($this->children[$path])) {
         $this->children[$path] = $this->doFetch($path);
     }
     return count($this->children[$path]) > 0;
 }