I suspect that != line should be changed to "is not" for an object identity comparison instead of equality comparison.
I suspect that != line should be changed to "is not" for an object identity comparison instead of equality comparison.