         }
 
         rawData = availableData.subdata(in: 0..<length)
+
+        isPresent = availableData[1] != 0
         
         timestamp = DateComponents(pumpEventData: availableData, offset: 2)
     }

    public var dictionaryRepresentation: [String: Any] {
        return [
            "_type": "Battery",
        ]
    }
}

public struct BatteryPumpEvent: TimestampedPumpEvent {
    public let length: Int
    public let rawData: Data
    public let isPresent: Bool
    public let timestamp: DateComponents
    
    public init?(availableData: Data, pumpModel: PumpModel) {
