static bool isEan13(Barcode barcode) { if (barcode.symbology != Symbology.ean13Upca) { return false; } return barcode.data?.length == 13 && barcode.data?[0] != '0'; }