Need brackets around the `expiry != 0` bit.