changed if \! to unless