little change with compare operator.

I think checking none by 'is' looks better and is consistent with other codes.