maybe call it match_attrs?
missing docs for attrs