Code cleanup: Replace checking of not instanceof to instanceof to simply code

None

Reviewer: Daniel Jao