private function isLatest() { if (null === $this->isLatestVersion) { $this->isLatestVersion = method_exists(current(class_parents($this)), 'setDefined'); } return $this->isLatestVersion; }