Use ToArrayInterface type check when accessing response headers