The barcode scanner looks for barcodes in this case if it finds the barcode it returns the 3 required elements. However, if it doesn't it returns empty array. Therefor all we need to do is add an if else statment.
public String ReadBarcodeFromFile(string _Filepath)
String barcodes = BarcodeScanner.Scan(_Filepath, BarcodeType.Code39);//Issue is here this array stays 0
return barcodes;// error here
Something within those lines or however you want the if else to preform/do. hope this helps someone.