can we rewrite it to `options.hasOwnProperty` ?