Because the statement "hack != 0" makes no sense here.
1st, the case only runs when the corresponding button is turned on/off
Second, PATCH_LIB_SWITCH already handles the conditional patching itself. If the boolean is true, it will patch the offset. If it's false, it will restore the offset. In short, you do not need any additional if/else statements with it