private static function userFeatureExistsOne(array $features, string $feature_code, $module_id = null) : int {
		$result = $features[$feature_code][$module_id] ?? null;
		if ($result === 0) {
			return 1;
		} else if ($result === 1) {
			return 2;
		}
		return 0;
	}
private static function userFeatureExistsOne(array $features, string $feature_code, $module_id = null) : int {
		$result = $features[$feature_code][$module_id] ?? null;
		if ($result === 0) {
			return 1;
		} else if ($result === 1) {
			return 2;
		}
		return 0;
	}
private static function userFeatureExistsOne ( array $ features , string $ feature_code , $ module_id = null ) : int { $ result = $ features [ $ feature_code ] [ $ module_id ] ?? null ; if ( $ result === 0 ) { return 1 ; } else if ( $ result === 1 ) { return 2 ; } return 0 ; }
User feature exists one

@param array $features
@param string $feature_code
@param int $module_id
@return int
User feature exists one