Seems like you could get rid of one line of code here by doing the `if` directly on the `rule-match?` call, since you're not using the `match?` variable anywhere else.