it's a property/method.

    @property
    def _remote_chef_env(self):
        if self.remote_api:
            return ChefEnvironment(self.name, self.remote_api)
        else:
            return None