Can we pull out a named method here? Maybe something like `params_in_hash?`.  I'm not sure what the best name is but what I would definitely like to explain what is happening here.

Also, would do you think about avoided the === and instead specify that you're actually checking for the class?