if (rv == NS_RDF_CURSOR_EMPTY)
if (! hasMore)
RDFGenericBuilderImpl::IsContainer(nsIContent* aElement, nsIRDFResource* aResource){    PRBool result = PR_FALSE;    nsCOMPtr<nsIRDFArcsOutCursor> arcs;    if (NS_FAILED(mDB->ArcLabelsOut(aResource, getter_AddRefs(arcs)))) {        NS_ERROR("unable to get arcs out");        return result;    }    while (1) {        nsresult rv = arcs->Advance();        NS_ASSERTION(NS_SUCCEEDED(rv), "severe error advancing cursor");        if (NS_FAILED(rv))            return PR_FALSE;        if (rv == NS_RDF_CURSOR_EMPTY)            break;        nsCOMPtr<nsIRDFResource> property;        if (NS_FAILED(arcs->GetLabel(getter_AddRefs(property)))) {            NS_ERROR("unable to get cursor value");            return result;        }        // Ignore properties that are used to indicate "tree-ness"        if (IsContainmentProperty(aElement, property))            return PR_TRUE;    }    return result;}