seq returns 0 on success. So if there is an error on positioning the cursor on $O$;, then we can say it is not an old index. The condition is if $dbh->seq, then return but it was $dbh->seq or return. Besides there are now some outcommented debugging statements that I needed from time to time. They should be removed some day later but left for a while to ease the debugging process.