Deprecate isEnvironment