Transaction: use isFinite instead over typeof number