Function returning pair when for single values in the array

Check if the number is not single when k = number + number:
f(8, [2, 5, 4, 3]) returns: [3, 5] [4, 4] but number 4 is not in pair!