protected function _checkSetSecurKey($path = null) {
		if (empty($path) && !file_exists($path)) {
			return false;
		}

		$checkResult = true;
		$File = new File($path . 'Config' . DS . 'core.php');
		$contents = $File->read();
		if (empty($contents)) {
			return false;
		}

		$patterns = [
			'/(?<![\/]{2})Configure::write\(\'Security.salt\',[\s\'A-z0-9]*\);/',
			'/(?<![\/]{2})Configure::write\(\'Security.cipherSeed\',[\s\'A-z0-9]*\);/',
			'/(?<![\/]{2})Configure::write\(\'Security.key\',[\s\'A-z0-9]*\);/'
		];
		foreach ($patterns as $pattern) {
			$checkResult = $checkResult && (bool)preg_match($pattern, $contents);
		}

		return $checkResult;
	}