Either a wrong diagnostic or check, you're checking for arrays but diagnosing objects here.