protected function traitNameExists($trait)
    {
        if($this->files->exists($this->getTraitDirectory() . $this->getDirOption() . $trait . '.php')) {
            return true;
        }

        return false;
    }
protected function traitNameExists($trait)
    {
        if($this->files->exists($this->getTraitDirectory() . $this->getDirOption() . $trait . '.php')) {
            return true;
        }

        return false;
    }
protected function traitNameExists ( $ trait ) { if ( $ this -> files -> exists ( $ this -> getTraitDirectory ( ) . $ this -> getDirOption ( ) . $ trait . '.php' ) ) { return true ; } return false ; }
Validate if trait already exists

@param  string $trait
@return bool
Validate if trait already exists