@jansepar why don't you just do something like `opts = opts || {}` then no need for this conditional?