in reply to Is this reliable?
A boolean will be interpreted as 1 or 0 in a numeric context!
Cheers Rolf