private function serviceExists(string $category, string $type): bool
  {
    $service_class = $this->convertTypeToServiceClassName($category, $type);
    if(is_null($service_class))
      return false;

    $interfaces = class_implements($service_class);
    if($interfaces===false || !is_array($interfaces))
      return false;


    $category = ucfirst(strtolower($category));
    $sought_adapter_interface = $this->kernel->config()->namespaces->services . $category. "\\" . $category . "Interface";
    return
      (in_array(self::SOUGHT_SERVICE_INTERFACE, $interfaces) && in_array($sought_adapter_interface, $interfaces));
  }