input: Write a python function to create a Word document with a table containing specified headers and data.
  assert create_document_with_table(['Name', 'Phone', 'Email'], [['John', '9898989898', 'john@example.com'], ['Alice', '1234567890', 'alice@example.com']], 'test_table1.docx') == True
  assert create_document_with_table(['Product', 'Price', 'Quantity'], [['Apple', '$1', '50'], ['Banana', '$0.5', '100']], 'test_table2.docx') == True
  assert create_document_with_table(['City', 'Country', 'Population'], [['Paris', 'France', '2,140,526'], ['Berlin', 'Germany', '3,769,495']], 'test_table3.docx') == True
output: def create_document_with_table(headers, data, filename):
      from docx import Document
      
      try:
          document = Document()
          table = document.add_table(rows=1, cols=len(headers))
          hdr_cells = table.rows[0].cells
          for i, header in enumerate(headers):
              hdr_cells[i].text = header
          
          for row_data in data:
              row_cells = table.add_row().cells
              for i, cell_data in enumerate(row_data):
                  row_cells[i].text = cell_data
          
          document.save(filename)
          return True
      except Exception as e:
          return False