Use 'is None' rather than '== None' to avoid SR's overloaded comparison operators