"In short, testing if variable is not None allows variable to be anything else, including values that would otherwise be considered False in a boolean context." . . . .