input: Write a function to verify if a given list of tasks fetched from the backend API is displayed correctly in the React frontend. The function should return True if all tasks are displayed with their correct titles and completion statuses, and False otherwise. The function should handle cases where the list is empty by returning True.
  assert task_display_correct([{"id": 1, "title": "Buy groceries", "is_completed": False}, {"id": 2, "title": "Finish report", "is_completed": True}]) == True
  assert task_display_correct([{"id": 1, "title": "Buy groceries", "is_completed": True}, {"id": 2, "title": "Finish report", "is_completed": False}]) == True
  assert task_display_correct([{"id": 1, "title": "Buy groceries", "is_completed": True}, {"id": 2, "title": "Finish report", "is_completed": True}]) == True
  assert task_display_correct([{"id": 1, "title": "Buy groceries", "is_completed": True}]) == True
  assert task_display_correct([]) == True
output: def task_display_correct(tasks):
      if not tasks:
          return True
      for task in tasks:
          if not ("id" in task and "title" in task and "is_completed" in task):
              return False
      return True