code: def dead(self):
          
          return (
              self.data is None or
              self.model.state.entity_data(
                  self.entity_type, self.entity_id, -1) is None
          )
docs: Returns True if this entity no longer exists in the underlying
          model.