def exists(self, obj: Any) -> bool:
        """Check whether the path exists in the given object."""

        try:
            for _ in self.get(obj):
                # Check that all named values exist, not just the first one.
                pass

        except (KeyError, IndexError, ValueError):
            return False

        return True
Check whether the path exists in the given object.
src/core/trulens/core/utils/serial.py