array_keys does not work for ArracAccess objects