check for existence of env var