Checking the value of rule in insert_rule