if you do an || [ ] after you run your search then...
# suitescript
c
if you do an || [] after you run your search then you can do .length