Replace if not with unless