[helpers] Remove isArray helper, add type() helper instead