0
sample = [{'Code':'0060301'}, {'Code':'864791'}]
pdfDict = [{'Code':'0060301', 'DocumentNumber':'12345', 'PdfUrl':'www.facebook.com'},
{'Code':'78549', 'DocumentNumber':'789654', 'PdfUrl':'www.spacex.com'}]
if pdfDict and pdfDict is not None:
if self.DownloadAllDocument:
...