since you're using the first two args anyway, this would be cleaner like this:

```js
var args = ['-sdk', sdk];
if (typeof xcconfig !== "undefined") {
  args = args.concat(['-xcconfig', xcconfig]);
}
```