same as above, `if self.memstore is not None:`?