zero is the nil value for the pin yes. If the rule hasn't been set yet then this pin = 0 and that's what this check is supposed to catch.