add ? to type of isArray

to help local inference