check instance + check class def