Extended Equal to accept nils