check if rule name exists