use test instead of match

`.test()` returns a Boolean instead of an object with information about the match. Since we only want to know if there is a match, this is cleaner/faster/the right thing to do.