```js
if (!Array.isArray(to[field]) || !to[field][0] ||!to[field[0].trim()) 
```