i realize that, i meant that your function only solves the && case (a && b && c), but you still have the probelm with (a || b || c) or any other combination of a, b and c.
so while the thought may be good, the proposed solution does not go far enough.
greetings, martin.