check if the result set has only one element if yes not to index it.