context instance check