Check comparator.