protected static function _isEndOfParent($tokenId, $parentId, array $tokens) {
		if (!isset($tokens[$parentId])) {
			return false;
		}

		$diff = $tokens[$tokenId]['checksum'] - $tokens[$parentId]['checksum'];

		if ($diff > 0) {
			return false;
		}

		$token = $tokens[$tokenId];
		$parent = $tokens[$parentId];
		$endingTokens = static::$_parentTokens[$parent['id']]['endingTokens'];
		if (isset($endingTokens[$token['name']]) || ($diff < 0 && $token['name'] === '}')) {
			return $tokens[$parentId]['parent'];
		}

		return false;
	}