Added check_env_var()