Proper type checking/comparison using "is"

Instead of weird literals.

Maybe you are trying to compare values and not types.