<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_by_tag(self, tag):
 """ Remove the first encountered object with the specified tag from the world. Returns true if an object was found and removed. Returns false if no object could be removed. """

        obj = self.find_obj_by_tag(tag)
        if obj != None:
            self.remove_obj(obj)
            return True

        return False