Fixed rule existence checks.