cleanup wres code to use bool return value where it is possible