if (mArray && aIndex < mArray->Count()) {
mArray->Count(&count); if (mArray && aIndex < count) {
nsXMLNamedNodeMap::Item(PRUint32 aIndex, nsIDOMNode** aReturn){  if (!aReturn)    return NS_ERROR_NULL_POINTER;  if (mArray && aIndex < mArray->Count()) {    nsCOMPtr<nsIDOMNode> domNode(do_QueryInterface(mArray->ElementAt(aIndex)));    *aReturn = domNode;  } else    *aReturn = 0;  return NS_OK;}