Matter of taste, but I slightly prefer minimizing negation with "if (!(cls.isTopLevel || cls.isLocal))"