class exists_wrapper