mxCompare: make comparison optional