Class IsDistinctFunction