please add logical function any() / all() to calculate
any(true,false,false) => true
any(fale,false,false) => false
all(true,true,true) => true
all(true,true,false) => false
Currently we can sum them and compare to the count to do the same but above could be more efficient especially in case of any().