A lens can only create one beam? It might be easier to just have an on/off variable and compare if the lens is on. To do what you mentioned you can use the conditions lens.var=UID and then set variable to lens.pickedcount, if var=0 then none exist, but maybe better to do what I first mentioned.