maybe we can make the code clearer by 

```js
var outContact = contact;
if(!(contact instanceof mozContact)) {
   outContact = new mozContact(contact);
   outContact.id = contact.id || outContact.id; 
}

return outContact;
```