> i think that will only happen for non namespaced classes, which aren't dealt with in this fix, can you check?

Yeah, you are right. all fine with it though. Will change it to class_exists.