Correct environment variable check.