How about:
s = sb and sb.ToString()
The short circuited Boolean stops if sb is Falsy, else returns the next expression.
Btw, if getting None is important...
sb = ""
#we wont proceed to sb.toString, but the OR will return None here...
s = (sb or None) and sb.toString()
print s, type(s)
output:
None