daemon: Move useful is_zero function to header file.