public function checkConnectDb($path = null, $returnBool = false) {
		$connections = $this->getListDbConn($path);
		if (empty($connections)) {
			return null;
		}

		$cfgConnections = $this->_modelConfigInstaller->getListDbConnConfigs();
		if (empty($cfgConnections)) {
			return null;
		}

		$connections = array_intersect($connections, $cfgConnections);
		$notCfgConnections = array_diff($cfgConnections, $connections);
		$result = [];
		$resultBool = true;
		foreach ($connections as $connectionName) {
			try {
				//@codingStandardsIgnoreStart
				$ds = @ConnectionManager::getDataSource($connectionName);
				//@codingStandardsIgnoreEnd
				$checkResult = $ds->isConnected();
			} catch (Exception $exception) {
				$checkResult = [$exception->getMessage()];
				$attributes = $exception->getAttributes();
				if (isset($attributes['message'])) {
					$checkResult[] = $attributes['message'];
				}
				$resultBool = false;
			}
			if (!$checkResult) {
				$resultBool = false;
			}
			$result[$connectionName] = $checkResult;
		}
		foreach ($notCfgConnections as $connectionName) {
			$result[$connectionName] = false;
			$resultBool = false;
		}
		if ($returnBool) {
			return $resultBool;
		}

		return $result;
	}