(I mean, not important at all, but afaik that is the idiomatic way to do this, even though explicitly comparing to None instead of using truthiness can be a good thing.)