def soldOutForRole(event, role):
    '''
    This tag allows one to determine whether any event is sold out for any
    particular role.
    '''
    if not isinstance(event, Event) or not isinstance(role, DanceRole):
        return None
    return event.soldOutForRole(role)