'is' keyword checks identity (reference equality). Might work here, but it might not. Making it == to be safe.