This checks that there wasn't an error in loading, not that the file was successfully loaded.  It should do something like the next text where it's confirmed that the file was loaded by putting a flag in it.