you can merge these two snippets into one:

~~~~~
 extlookup("${2:Lookup}"`!p snip.rv = ", " if t[3] else ""` 
~~~~

and the same for the closing brace.