`if (!value)` should be fine since the unit can be ignored if value is 0.