Cleanup: null instanceof Foo (returns false/is safe)

"te != null && te instanceof Foo" -> "te instanceof Foo"

instanceof will just return false on null anyway