@classmethod
def _check_if_path_exists(cls, anchor, path):
    """
        Check if a path exists from the view of an anchor.

        Parameters
        ----------
        anchor : xml.etree.ElementTree.Element
            The anchor from which the path is considered to start.
        path : unicode
            The (indexed) path to be checked.

        Returns
        -------
        exists : bool
            True if the path exists False otherwise.

        Examples
        --------
        >>> import xml.etree.ElementTree as xml
        >>> root = xml.Element('Root')
        >>> a0 = xml.Element('A')
        >>> root.append(a0)
        >>> b0 = xml.Element('B')
        >>> a0.append(b0)
        >>> c0 = xml.Element('C')
        >>> b0.append(c0)
        >>> XMLAdaptor._check_if_path_exists(root, 'A/B/C')
        True
        >>> XMLAdaptor._check_if_path_exists(root, 'A/B')
        True
        >>> XMLAdaptor._check_if_path_exists(root, 'B/C')
        False
        >>> XMLAdaptor._check_if_path_exists(a0, 'B/C')
        True
        >>> XMLAdaptor._check_if_path_exists(a0, 'C')
        False
        >>> XMLAdaptor._check_if_path_exists(b0, 'C')
        True
        >>> a1 = xml.Element('A')
        >>> root.append(a1)
        >>> a1.append(b0)
        >>> XMLAdaptor._check_if_path_exists(root, 'A[1]/B')
        True
        >>> XMLAdaptor._check_if_path_exists(root, 'A[1]/B[1]')
        False
        """
    return cls._find_element_from_indexed_path(anchor, path) is not None
