code: def query_exists(filters):
          
          return db.session.query(
              KnwKB.query.filter(
                  filters).exists()).scalar()
docs: Return True if a kb with the given filters exists.
  
          E.g: KnwKB.query_exists(KnwKB.name.like('FAQ'))
  
          :param filters: filter for sqlalchemy
          :return: True if kb exists