WL-2998 Correctly match function arguments.

We were supplying strings rather than a boolean which always evaluates to true. So it sort of worked, but not as intended.