You are using ``$this->savedValues`` variable but it was never initialized as array().