Jorge,
Sure, you could use something like:
if(member('tran results()) wantedExpression 0.0)
The wantedExpression would be what you would have put otherwise. If you
want to make it a bit more verbose you could put:
if(member('tran results()) then wantedExpression else 0.0)
but if there's only a single "then" and "else" expression, you can miss
out the keywords. I've arranged this one to return 0.0 if the results
didn't exist - you want to ensure that your expression returns a number.
Regards,
Andrew.