public function has($key)
    {
        return isset($this->factories[$key]) || isset($this->services[$key]);
    }
public function has($key)
    {
        return isset($this->factories[$key]) || isset($this->services[$key]);
    }
public function has ( $ key ) { return isset ( $ this -> factories [ $ key ] ) || isset ( $ this -> services [ $ key ] ) ; }
Determine if the given service exists.

@param  string  $key

@return bool
Determine if the given service exists .