check key before access os.environ