copy paste error crept in a few weeks ago, breaking the case of a user-defined function that returns boolean.