using dust.isArray in place of Array.isArray