This is a bit of a unknown area to me, but I'd imagine the load function gives back a boolean result. Perhaps you can do something with that?