def METHOD_NAME(self, path_):
    self._path = path_
    if isinstance(self.path, Exception):
        raise self.path
    def part(entry):
        return entry.split('/')
    return any(
        len(parts) == 1 and parts[0] == path_ for parts in map(part, self._contents)
    )