function TestEnabledFeatures($arFeatures) { foreach ($arFeatures as $featureKey => $featureValue) { if (is_array($featureValue)) { if ($this->TestEnabledFeatures($featureValue, $arBXFeatures)) { return true; } } else { if (CBXFeatures::IsFeatureInstalled($featureValue)) { return true; } } } return false; }