def check_lato_blog_tag_parent
      tag_parent = LatoBlog::TagParent.find_by(id: lato_blog_tag_parent_id)
      if !tag_parent
        errors.add('Tag parent', 'not exist for the tag')
        throw :abort
        return
      end

      same_language_tag = tag_parent.tags.find_by(meta_language: meta_language)
      if same_language_tag && same_language_tag.id != id
        errors.add('Tag parent', 'has another tag for the same language')
        throw :abort
        return
      end
    end
def check_lato_blog_tag_parent
      tag_parent = LatoBlog::TagParent.find_by(id: lato_blog_tag_parent_id)
      if !tag_parent
        errors.add('Tag parent', 'not exist for the tag')
        throw :abort
        return
      end

      same_language_tag = tag_parent.tags.find_by(meta_language: meta_language)
      if same_language_tag && same_language_tag.id != id
        errors.add('Tag parent', 'has another tag for the same language')
        throw :abort
        return
      end
    end
This function check that the category parent exist and has not others tags for the same language.