public function has($service)
    {
        if (!is_string($service)) {
            throw new InvalidArgumentException(sprintf(
                'Service name must be a string, received "%s"', gettype($service)
            ));
        }

        return isset($this->container[$service]);
    }