def check_trigger_added(self, context, connection):
        """check if the trigger is added to the config file XML tree"""

        if self.trigger_added(context, connection):
            context.log.display(f"Malicious trigger '{self.trigger_name}' found in '{self.keepass_config_path}'")
        else:
            context.log.display(f"No trigger '{self.trigger_name}' found in '{self.keepass_config_path}'")
check if the trigger is added to the config file XML tree
cme/modules/keepass_trigger.py