Correct instanceof check.