in reply to Re^3: Tieing anonymous hashes
in thread Tieing anonymous hashes

So use ->can() or ->isa().