Add check for options before using ._def, just in case it is undefined.