def is_hex_value(val):

    """
    Helper function that returns True if the provided value is an integer in
    hexadecimal format.
    """

    try:
        int(val, 16)
    except ValueError:
        return False
    return True