slightly modified is_zero for distributions