add back copy of check function from Rule class