check for nil or zero length barcode