small improvement on instance check