Reverse comparison to avoid NPE.