Pass &mut C to is_valid and has_broken

There isn't any reason not to