diff --git a/src/Tree/Finder.php b/src/Tree/Finder.php index 8a2d5ca..5941a1f 100644 --- a/src/Tree/Finder.php +++ b/src/Tree/Finder.php @@ -72,8 +72,10 @@ public function lookup($provided): ?Node } } - if (null !== $bestId) { - return $this->objects[$this->idToHash[$bestId]]; + if (null === $bestId) { + return null; } + + return $this->objects[$this->idToHash[$bestId]]; } }