public static function hasInstall( string $name, bool $result_id = false ): bool
	{
		if( $name === "@core" )
		{
			return Helper::isSystemInstall(true) ? ($result_id ? 0 : true) : false;
		}

		try {
			$row = self::getModuleScheme($name, false, ["id", "install"]);
		}
		catch(NotFoundException $e) {
			return false;
		}

		if( $row->install < 1 )
		{
			return false;
		}

		return $result_id ? (int) $row->id : true;
	}