def get_field(record, field, subfield='a'):
    """
    Shortcut to get a record field and subfield or empty string, if no value is found.
    """
    try:
        value = record[field][subfield]
        return value if value is not None else ''
    except (KeyError, TypeError):
        return ''
