Add __nonzero__ method to BaseEnvironment