Return opts.NAME if opts is valid and
opts.NAME
dict, object, or null
option name (use dot notation to access extension option, e.g. filter.mode)
filter.mode
returned when opts is not an object, or does not have a NAME property
opts
Return
opts.NAME
if opts is valid and