inline couldBeCanonicalArray() since the name isn't super clear