Polymorphics don't necessarily have a type set.  Check before using
it as a key