private static function isValid(string $content): bool
    {
        if ('' === $content) {
            return false;
        }

        return (bool)preg_match_all(static::getPlaceholderPattern(), $content);
    }