Removing legacy hasOwnProperty