Use a NullEnvironment instead of nil checks