```opts = opts || {}```

would work the same and might be similar so that you do not have to have another block of conditional code execution.