public function read(string $id) : array { if (!$this->has($id)) { throw new Exception\LogicException("Document {$id} does not exist, did you call has()?"); } return $this->engine->read($id); }