public function isTemplateConnected($nb_template) : bool
    {
        $retval = false;

        if (is_numeric($nb_template_id = nb_getMixedValue($nb_template, NABU_MESSAGING_TEMPLATE_FIELD_ID))) {
            $this->getTemplateConnections();
            $retval = $this->nb_messaging_template_service_list->containsKey($nb_template_id);
        }

        return $retval;
    }