array_keys does not work for ArrayAccess objects