if (is_object($class)) {
// Add a message around the missing class
$message = sprintf('[%s:%d] Dimensions not found in array, array is invalid!',
if (is_object($class)) {
// Add a message around the missing class
$message = sprintf('[%s:%d] Dimensions not found in array, array is invalid!',