input: Write a function to determine if it is possible to create a HTML page displaying a table of contents using data from a database. If it is possible to create such a page, return True, otherwise return False. If the database contains no data, return False.
  assert create_table_of_contents(True)==True
  assert create_table_of_contents(False)==False
  assert create_table_of_contents(False) == False
output: def create_table_of_contents(has_data):
      return has_data