public function clear() { if (null === $this->json) { $this->load(); } $this->json = array(); $this->flush(); }