I think that as a result of a SELECT INTO CURSOR you will always have a cursor, then you'll need to check if it is empty or not, not if it exists or not
if reccount('A') # 0
tablerevert()
endif
....
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges