inner[0].type doesn't actually exist, easier to compare against group.value.value[0] instead