WordPress Periksa apakah kelas ada
if(class_exists('dbinfo')){
//do something
}
Darkvent
if(class_exists('dbinfo')){
//do something
}