function getBestGalleyId() { $publicGalleyId = $this->getStoredPubId('publisher-id'); if (!empty($publicGalleyId)) { return $publicGalleyId; } return $this->getId(); }