Simplified internal check_if_class template implementation
* Using std::integral_constant directly instead of packed into a struct