protected function validateRenderTags($allPosition = true): void
    {
        if ($allPosition && !empty($this->contents)) {
            $keys = array_keys($this->contents);

            throw new MissingTagPositionException($this->contents[$keys[0]][0]);
        }
    }