You need to check for the args.size == 1, because it can be [{foo: 'bar'}, 2]