This is a little confusing. Why not just check ``if contrib.transaction is not None`` ?