$form ) { // $form is a Campaign Monitor forms\core\Form object. It'll be a __PHP_Incomplete_Class if the Campaign Monitor plugin is not active. // To consistently access the protected form name property, we have to cast to an array. $form = (array) $form; // Access the protected form name property. // When casting __PHP_Incomplete_Class to an array, protected properties are prefixed with \0*\0. $forms[ $form_id ] = $form["\0*\0name"]; } return $forms; } }