def get_event_data_section(raw):
    """
    Helper to get the 'EventData' or 'UserData' key of the base XML for each record. If this fails, it is very likely that the
    record is corrupted due to the log recovery software.
    :param raw:
    :return: whether or not the key exists.
    """

    if 'EventData' not in raw['Event'] and 'UserData' not in raw['Event']:
        return False

    return True