Simpler way of making sure we are in a transaction.

We're going to be needing this more, thus the desire to eliminate
the repetition of the with...if...else stuff.