Checking the trash folder should be the first block of code.