Replace an ugly cond with unless