Fixing if conditional for environment variable test to is not None