public function findLastIndex(string $tagName) : int
    {
        $tags = $this->asArray();
        return ArrayUtils::lastIndexOf($tags, function (Tag $tag) use ($tagName) {
            return $tag->getTagName() === $tagName;
        });
    }