public static function systemFeatureExists(string $feature_code, $module_id = null) : bool {
		if (!isset($module_id)) {
			$module_id = \Application::$controller->module_id;
		}
		$temp = explode('::', $feature_code);
		$result = \Object\Controller::getSystemModuleByModuleCode($temp[0]);
		if (isset($result['module_ids'][$module_id]['features'])) {
			return in_array($feature_code, $result['module_ids'][$module_id]['features']);
		}
		if (empty($result['module_multiple'])) {
			return in_array($feature_code, $result['all_features']);
		}
		return false;
	}
public static function systemFeatureExists(string $feature_code, $module_id = null) : bool {
		if (!isset($module_id)) {
			$module_id = \Application::$controller->module_id;
		}
		$temp = explode('::', $feature_code);
		$result = \Object\Controller::getSystemModuleByModuleCode($temp[0]);
		if (isset($result['module_ids'][$module_id]['features'])) {
			return in_array($feature_code, $result['module_ids'][$module_id]['features']);
		}
		if (empty($result['module_multiple'])) {
			return in_array($feature_code, $result['all_features']);
		}
		return false;
	}
public static function systemFeatureExists ( string $ feature_code , $ module_id = null ) : bool { if ( ! isset ( $ module_id ) ) { $ module_id = \ Application :: $ controller -> module_id ; } $ temp = explode ( '::' , $ feature_code ) ; $ result = \ Object \ Controller :: getSystemModuleByModuleCode ( $ temp [ 0 ] ) ; if ( isset ( $ result [ 'module_ids' ] [ $ module_id ] [ 'features' ] ) ) { return in_array ( $ feature_code , $ result [ 'module_ids' ] [ $ module_id ] [ 'features' ] ) ; } if ( empty ( $ result [ 'module_multiple' ] ) ) { return in_array ( $ feature_code , $ result [ 'all_features' ] ) ; } return false ; }
System feature exists

@param string $feature_code
@param int|null $module_id
@return bool
System feature exists