public function has($name)
    {
        return isset($this->payload[$name]) || isset($this->map[ltrim($name, '/')]);
    }
public function has($name)
    {
        return isset($this->payload[$name]) || isset($this->map[ltrim($name, '/')]);
    }
public function has ( $ name ) { return isset ( $ this -> payload [ $ name ] ) || isset ( $ this -> map [ ltrim ( $ name , '/' ) ] ) ; }
Check whether given service exists

@param string $name
@return bool
Check whether given service exists