Remove redundant check

We default opts to {} at the top of the function.

Also fix indentation.