add NOT operator to fix if statement

if was checking if file exists but was supposed to check if it doesn’t