diff --git a/src/Totem/Set.php b/src/Totem/Set.php index 67f07b0..e2a2f0e 100644 --- a/src/Totem/Set.php +++ b/src/Totem/Set.php @@ -139,7 +139,7 @@ private function compute(AbstractSnapshot $old, AbstractSnapshot $new) $this->changes = []; foreach ($old->getDataKeys() as $key) { - if (!isset($new[$key])) { + if (!in_array($key, $new->getDataKeys())) { $this->changes[$key] = new Removal($old[$key] instanceof AbstractSnapshot ? $old[$key]->getRawData() : $old[$key]); continue; }