you can tell if you have results if result is trut...
# suitescript
b
you can tell if you have results if result is truthy and has a length