This function reads configuration data from a YAML file based on an environment variable or
a specific path and returns a vector of tuples containing keys and their corresponding boolean values.
Parameters:
environment (String): The name of the environment to look for in the configuration (e.g. dev, prod).
confi_env_var_name (String): The name of the environment variable that contains the YAML file path.
config_yaml_file (String): The path to the YAML configuration file. It is used only if the environment variable is not found
Returns:
Returns an ‘Option’, which is a vector containing tuples where each tuple consists of:
A string key
A boolean value corresponding to that key.
If no valid entries are found, or if there’s an error during processing (the configuration is not found or invalid), the function returns None.