private static $singleton;
/**
- * @var array<String,SimpleXMLElement>
+ * @var array
+ * <String,SimpleXMLElement>
*/
protected $xml = [];
// throw new CRM_Core_Exception("Cannot load caseType with malformed name [$caseType]");
//}
- if (!CRM_Utils_Array::value($caseType, $this->xml)) {
+ if (empty($this->xml[$caseType])) {
$fileXml = $this->retrieveFile($caseType);
if ($fileXml) {
$this->xml[$caseType] = $fileXml;