[enh] use 'is' to test against None instead of ==