should that only be used for functions that return a straight boolean?
Yes, only if returns exclusively true | false.
true | false