input: def can_create_table_of_contents(database_exists: bool, technologies: List[str]) -> bool:
      """
      Determines if it is possible to create a HTML page that displays a table of contents from the data stored in a database.
      The function checks if the database exists and if the necessary technologies such as HTML, CSS, JavaScript, and a server-side language (like PHP or Python) are available.
      
      >>> can_create_table_of_contents(True, ['HTML', 'CSS', 'JavaScript', 'PHP'])
      True
      >>> can_create_table_of_contents(True, ['HTML', 'CSS'])
      False
      >>> can_create_table_of_contents(False, ['HTML', 'CSS', 'JavaScript', 'Python'])
      False
      >>> can_create_table_of_contents(True, ['HTML', 'CSS', 'JavaScript', 'Python'])
      True
      """
      required_technologies = {'HTML', 'CSS', 'JavaScript', {'PHP', 'Python'}}
      available_technologies = set(technologies)
      
      if not database_exists:
          return False
      
      for tech in required_technologies:
          if isinstance(tech, set):
              if not any(t in available_technologies for t in tech):
                  return False
          elif tech not in available_technologies:
              return False
      
      return True
output:     
      required_technologies = {'HTML', 'CSS', 'JavaScript', {'PHP', 'Python'}}
      available_technologies = set(technologies)
      
      if not database_exists:
          return False
      
      for tech in required_technologies:
          if isinstance(tech, set):
              if not any(t in available_technologies for t in tech):
                  return False
          elif tech not in available_technologies:
              return False
      
      return True
  