This is pretty suboptimal; you're calling `Object.keys` twice.