def has_location(self, area_name, room_id):
        """Check if a location (room) exists given an area name and a room id.
        Returns True if the room exists, false if it doesn't.
        """
        if self.areas in area_name:
            room = self.areas.get(area_name).get_room(str(room_id))
            if room:
                return True
        return False
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/lib/world.py/World.has_location/swapped operands of `in`