This is not exactly what I need.

I need:
if t2 is not empty, then t2
if t2 is empty, then t1

thanks