def _does_room_exist(rooms, groupid, sensorid):
    """ Determines if there is a room for a given sensor or not.

    Args:
        rooms (dict): A dictionary containing sensor rooms.
        groupid (int): The groupid corresponding to the room to check.
        sensorid (int): The sensorid corresponding to the room to check.
    """
    if not (groupid, sensorid) in rooms:
        return False
    return True