# Old: if (! $Expects and ref($d1) and UNIVERSAL::isa($d1, "Test::Deep::Cmp")) # New: if (! $Expects and Scalar::Util::blessed($d1) and $d1->isa("Test::Deep::Cmp"))