Check if opts is defined.