Use `is None` instead of `not`.

Same as strands-project/strands_executive#116
Merge pull request #13 from lucasb-eyer/patch-1

Use `is None` instead of `not`.