public static function hasPurchasedUsers() { if (self::$hasPurchasedUsers !== null) { return self::$hasPurchasedUsers; } if (!(ModuleManager::isModuleInstalled('bitrix24') && Loader::includeModule('bitrix24')) && method_exists('CBitrix24', 'IsExtraUsers')) { return self::$hasPurchasedUsers = false; } return self::$hasPurchasedUsers = \CBitrix24::IsExtraUsers(); }