[PATCH 3/3] Refactor the condition to setup the watchdog with a block