replaces deprecated isa with object_getClass()

Direct use of isa has been deprecated.