array_keys only accepts arrays not objects