Type check empty class instantiation