I understand the basic difference between the two, in that isa() returns true or false and ref() returns the type. What I'm wondering is this - should I be replacing
? Are there any pitfalls I should be aware of? Are there any shortcuts that could be useful?