Bugfix to r96441, class_exists throws warnings when arrays are passed to it