Fix boolean on file deletion check