This is weird. It would be better to do `type = args.first.is_a?(Symbol) …`.