Empty opts

If you pass an empty array or an object as a parameter, an error will occur.