original_string: protected function isEmptyDir($path)
      {
          if ($this->fs->exists($path) === true) {
              $finder = new Finder();
              $finder->in($path);
  
              $iterator = $finder->getIterator();
              $iterator->next();
  
              return iterator_count($iterator) === 0;
          }
  
          return true;
      }
code: protected function isEmptyDir($path)
      {
          if ($this->fs->exists($path) === true) {
              $finder = new Finder();
              $finder->in($path);
  
              $iterator = $finder->getIterator();
              $iterator->next();
  
              return iterator_count($iterator) === 0;
          }
  
          return true;
      }
code_tokens: protected function isEmptyDir ( $ path ) { if ( $ this -> fs -> exists ( $ path ) === true ) { $ finder = new Finder ( ) ; $ finder -> in ( $ path ) ; $ iterator = $ finder -> getIterator ( ) ; $ iterator -> next ( ) ; return iterator_count ( $ iterator ) === 0 ; } return true ; }
docstring: Is the path empty?
  
  @param string $path
  
  @return bool
docstring_tokens: Is the path empty?