This is still whacky. If engine was null, wouldn't it fail on the old or new line directly above this one? Why not check one line higher, right after we cast to the engine?