def check_environment_var_exist(self, environment_var):
        """Check if required environment variables are set.

        Args:
            environment_var (list): List of dictionaries containing environment variable names and values.

        Returns:
            bool: True if all environment variables are set, False otherwise.
        """
        try:
            applogger.debug(
                "BitSight: check_environment_var_exist: started checking existence of all custom environment variable"
            )
            for i in environment_var:
                key, val = next(iter(i.items()))
                if val is None:
                    applogger.error(
                        "BitSight: ENVIRONMENT VARIABLE: {} is not set in the environment.".format(
                            key
                        )
                    )
                    return False
            applogger.debug(
                "BitSight: check_environment_var_exist: All custom environment variable is exist."
            )
            return True
        except BitSightException as error:
            applogger.exception(error)
            raise BitSightException()
        except Exception as error:
            applogger.exception("BitSight: ENVIRONMENT VARIABLE {}".format(error))
            raise BitSightException()
Check if required environment variables are set.

        Args:
            environment_var (list): List of dictionaries containing environment variable names and values.

        Returns:
            bool: True if all environment variables are set, False otherwise.
        
Solutions/BitSight/Data Connectors/BitSightDataConnector/SharedCode/bitsight_client.py