Why is ArrayAccess accepted here?