If I were you, 

```js
var fbReq = isUpdate ? fb.contacts.update(data) : fb.contacts.save(data);
```