ensure opts hash is never nil