If `target` isn't passed to `merge`, it will be `undefined` rather than `null`.  Instead, check `if (typeof target != "undefined").