def check_environment_var_exist(self, environment_var):
        """Check the existence of required environment variables.

        Args:
            environment_var(list) : variables to check for existence
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            logging.info(consts.LOG_FORMAT.format(__method_name, "Validating Environment Variables."))
            missing_required_field = False
            for var in environment_var:
                key, val = next(iter(var.items()))
                if not val:
                    missing_required_field = True
                    logging.error(
                        consts.LOG_FORMAT.format(__method_name, "Environment variable {} is not set.".format(key))
                    )
            if missing_required_field:
                logging.error(consts.LOG_FORMAT.format(__method_name, "Environment Variables validation failed."))
                raise ArmisException()
            logging.info(consts.LOG_FORMAT.format(__method_name, "Environment Variables validation Success."))
        except ArmisException:
            raise ArmisException()
        except Exception as err:
            logging.error(
                consts.LOG_FORMAT.format(__method_name, "Error while checking environment variables: {}".format(err))
            )
            raise ArmisException()
Check the existence of required environment variables.

        Args:
            environment_var(list) : variables to check for existence
        
Solutions/Armis/Data Connectors/ArmisAlertsActivities/ArmisAlertActivitySentinelConnector/utils.py