Using `opts.hasOwnProperty` instead of `'property' in opts`