Added check before emptying destination folder