Use "is None" for comparison (best practice), and fix a discrepancy in the name of a documented variable.