Checks to see if distance exists between integers in input array