def is_rule_present(self, rule_id):
if rule_id not in self.rules:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
Returns if rule specified by rule id is present in dictionary.