noneIsEmpty -- check if in has a nonempty element input in the input output out is 0 if not empty and 1 otherwise