[picayune]  You might want to use an if/else construction here rather than a match, if the outcome of the function is strictly boolean.