Checking valid rule sets.