Generally, if you want to make sure you are getting None passed in instead of something that is equivalent to None, you would use "if value is None" here. It's rare that "is None" and "== None" give different results, but the general rule is to prefer "is None" to be sure.