Avoid an undefined compare