Email check for valid option object

Would you update these to match the coding conventions please?

Should be

```
if (_.isObject(arguments[1])) {
    prepareOptions.push(arguments[1]);
}
```

(not spaces between `if` and `(`, and use of curly braces for anything other than `return` statements)