Equality checks should use the ```===``` operator. It's also probably better to write it this way:
```js
name: name !== null ? [name] : [phoneNumber],
```