Avoid using Object.keys.