Check if a file exists or does not exist.