text: """fobject
  Check whether an entity with given uid exists.
  
  Check whether an entity with the given uid exists. Can be used for altering behaviour when an entity spawns, or for making while loops terminate when an entity is destroyed.
  
  in:
  - String: name of the entity
  
  out:
  - Bool: whether the entity was found
  
  """
  
  
  class IsEntity:
      def __init__(self, act, src, user, s):
          self.init_time = act.current_time
          self.act = act
          self.src = src
          self.user = user
          self.game = act.game
  
          self.init_time = act.current_time
          self.s = s
  
      def on_read(self):
          name = self.s
          if name[:2].lower() == "e_" and name[2:] in self.act.game.m_ent.entities:
              return True
          return False
  