Check for the required class and not the kernel version