public function hasPublishedVersion() { if ($this->getSnapshots()->count() > 0) { return true; } return false; }