Specifically ask if its a Hash.
This was causing issues on models that include an attribute named key.