More granular check for ActiveSupport::HashWithIndifferentAccess