def _is_hex(content):
    """
    Make sure this is actually a valid hex string.
    :param content:
    :return:
    """
    hex_digits = '0123456789ABCDEFabcdef'
    for char in content:
        if char not in hex_digits:
            return False
    return True