original_string: protected function traitNameExists($trait)
      {
          if($this->files->exists($this->getTraitDirectory() . $this->getDirOption() . $trait . '.php')) {
              return true;
          }
  
          return false;
      }
code: protected function traitNameExists($trait)
      {
          if($this->files->exists($this->getTraitDirectory() . $this->getDirOption() . $trait . '.php')) {
              return true;
          }
  
          return false;
      }
code_tokens: protected function traitNameExists ( $ trait ) { if ( $ this -> files -> exists ( $ this -> getTraitDirectory ( ) . $ this -> getDirOption ( ) . $ trait . '.php' ) ) { return true ; } return false ; }
docstring: Validate if trait already exists
  
  @param  string $trait
  @return bool
docstring_tokens: Validate if trait already exists