But won't this fail if say sku isn't provided and thus typeof would be undefined?

Also we need to reverse the whole logic of this if since if args are undefined we will still check args.sku.