diff --git a/src/Formats/Mobi/Parser/MobiParser.php b/src/Formats/Mobi/Parser/MobiParser.php index 13bd959..bb0eadd 100644 --- a/src/Formats/Mobi/Parser/MobiParser.php +++ b/src/Formats/Mobi/Parser/MobiParser.php @@ -43,7 +43,7 @@ public function get(int $record, bool $asArray = false): array|string|null { $data = $this->getRecordData($record); - if ($asArray) { + if ($asArray || $data === null) { return $data; }