Changed if not to unless