def is_corrupted(entity_max_eventid, last_eventid):
    if ((last_eventid is None) and (entity_max_eventid is None)):
        return False
    elif ((last_eventid is not None) and (entity_max_eventid is None)):
        return False
    elif ((entity_max_eventid is not None) and (last_eventid is None)):
        return True
    elif ((entity_max_eventid is not None) and (last_eventid is not None)):
        return (entity_max_eventid > last_eventid)
def is_corrupted(entity_max_eventid, last_eventid):
    if ((last_eventid is None) and (entity_max_eventid is None)):
        return False
    elif ((last_eventid is not None) and (entity_max_eventid is None)):
        return False
    elif ((entity_max_eventid is not None) and (last_eventid is None)):
        return True
    elif ((entity_max_eventid is not None) and (last_eventid is not None)):
        return (entity_max_eventid > last_eventid)