again replacing if not with unless condition