Why is this test needed? I thought `Object.keys` enumerated only owned properties.