If remote folder empty that's fine
Simplify parameter precheck
Code reformatting