protected function validateTags(array $tags)
    {
        foreach ($tags as $tagName => $tagValue) {
            // Tag names must only be strings
            if (!is_string($tagName)) {