replace len check with nil for default opts

The len(opts) check was not working. 
This works well and is more idiomatic in my opinion.