The "correct" way to check the class in ruby would be `args[1].is_a?(Hash)`