I prefer to check agains the `isa` attribute instead of checking against the class.