input: Write a function to determine if it is possible to create a HTML page that displays a table of contents from the data stored in a database. If it is possible return True else return False. If the database is empty then return True.
  assert create_toc([{"title": "Introduction", "url": "intro.html"}, {"title": "Chapter 1", "url": "chapter1.html"}])==True
  assert create_toc([])==True
  assert create_toc([{"title": "Introduction"}, {"url": "chapter1.html"}])==False
  assert create_toc([{"title": "Introduction", "url": "intro.html"}, {"title": "Chapter 1"}])==False
  assert create_toc([{"title": "Introduction"}, {"title": "Chapter 1"}])==False
output: def create_toc(data):
      if not data:
          return True
      for item in data:
          if "title" not in item or "url" not in item:
              return False
      return True