PUB-684: Check if test vector can be coerced to logical for ifelse