'Check if the given backing contains snapshots.'

def snapshot_exists(self, backing):

    snapshot = self._session.invoke_api(vim_util, 'get_object_property', self._session.vim, backing, 'snapshot')
    if ((snapshot is None) or (snapshot.rootSnapshotList is None)):
        return False
    return (len(snapshot.rootSnapshotList) != 0)
