Improved checkHandForPairs(). Less likely to return 'undefined is not a function' errors