Check if it is panel

You can use the following:

if(class_exists('Panel')) {
  ...
}
1 Like