findClosest: array index should be interger.