array_keys only accepts an array not an object.