Make sure Object.keys arg is an object