def is_unknown(val):
    """Check if value is in list of unknown values. If value
    is not a string catch the AttributeError raised by use of
    str.lower() and return False.
    """

    unknown_vals = ('unknown', 'n/a')

    try:
        return val.lower() in unknown_vals # truth value
    except AttributeError: # not a str
        return False