Use isArray.