Only check for Object.getOwnProperty once.