match[2] can just test if it's truthy, since there's only one possible value