private bool HasJoins(QCon con) { if (con.HasJoins()) { return true; } IEnumerator childIter = con.IterateChildren(); while (childIter.MoveNext()) { if (HasJoins((QCon)childIter.Current)) { return true; } } return false; }