set options to an empty object, if options is undefined