def has_sum_pair(input_list: list, sum: int) -> list:
    """Given list and desired integer sum, determines if a pair sums to that value."""
    complement_set = set()
    for number in input_list:
        if (sum - number) in complement_set:
            return [True, [number, sum - number]]
        complement_set.add(number)
    return [False, []]