nit: Maybe prefer if to if not?