util: removed duplicated isArray check