public function isChanged($what = '') { if (!$what) { return count($this->changes) > 0; } return array_key_exists($what, $this->changes); }