input: Write a function to determine if it's 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 data is empty then return True.
  assert create_toc_page(True, "HTML, CSS, JavaScript, PHP")==True
  assert create_toc_page(True, "HTML, CSS, JavaScript, Python")==True
  assert create_toc_page(True, "")==False
  assert create_toc_page(False, "HTML, CSS, JavaScript, PHP")==True
  assert create_toc_page(False, "")==True
output: def create_toc_page(has_database, data):
      if not has_database:
          return True
      return bool(data)