return CheckContainer(GetResourceFor(aIndex), nsnull, aResult);
nsOutlinerRows::iterator iter = mRows[aIndex]; NS_ASSERTION(iter->mContainerType == nsOutlinerRows::eContainerType_Container, "asking for empty state on non-container");  if (iter->mContainerState == nsOutlinerRows::eContainerState_Unknown) { PRBool isEmpty; CheckContainer(GetResourceFor(aIndex), nsnull, &isEmpty);  iter->mContainerState = isEmpty ? nsOutlinerRows::eContainerState_Empty : nsOutlinerRows::eContainerState_Nonempty; }  *aResult = (iter->mContainerState == nsOutlinerRows::eContainerState_Empty); return NS_OK;
nsXULOutlinerBuilder::IsContainerEmpty(PRInt32 aIndex, PRBool* aResult){    NS_PRECONDITION(aIndex >= 0 && aIndex < mRows.Count(), "bad row");    if (aIndex < 0 || aIndex >= mRows.Count())        return NS_ERROR_INVALID_ARG;    return CheckContainer(GetResourceFor(aIndex), nsnull, aResult);}