This is a very dangerous way of determining that its 'okay' to run the import again. I would prefer a marker actually be left inside the database, like in a table or something - very much like normal migrations do. At the very least a file on the file-system, but even that is prone to accidents.