def exists(self, path_or_index):
        """
        Checks if a path exists in the document. This is meant to be used
        for a corresponding :meth:`~couchbase.subdocument.exists` request.

        :param path_or_index: The path (or index) to check
        :return: `True` if the path exists, `False` if the path does not exist
        :raise: An exception if the server-side check failed for a reason other
            than the path not existing.
        """
        result = self._resolve(path_or_index)
        if not result[0]:
            return True
        elif E.SubdocPathNotFoundError._can_derive(result[0]):
            return False
        else:
            raise E.exc_from_rc(result[0])