protected function serviceNameExists($name)
    {
        if($this->files->exists($this->getServiceDirectory() . $this->getDirOption() . $name . '.php')) {
            return true;
        }

        return false;
    }
protected function serviceNameExists($name)
    {
        if($this->files->exists($this->getServiceDirectory() . $this->getDirOption() . $name . '.php')) {
            return true;
        }

        return false;
    }
protected function serviceNameExists ( $ name ) { if ( $ this -> files -> exists ( $ this -> getServiceDirectory ( ) . $ this -> getDirOption ( ) . $ name . '.php' ) ) { return true ; } return false ; }
Validate if service already exists

@param  string $name
@return bool
Validate if service already exists