private function isTranslationRemoved($document, $locale)
    {
        $oid = spl_object_hash($document);

        return isset($this->documentTranslations[$oid])
            && empty($this->documentTranslations[$oid][$locale])
            && array_key_exists($locale, $this->documentTranslations[$oid]);
    }
private function isTranslationRemoved($document, $locale)
    {
        $oid = spl_object_hash($document);

        return isset($this->documentTranslations[$oid])
            && empty($this->documentTranslations[$oid][$locale])
            && array_key_exists($locale, $this->documentTranslations[$oid]);
    }
private function isTranslationRemoved ( $ document , $ locale ) { $ oid = spl_object_hash ( $ document ) ; return isset ( $ this -> documentTranslations [ $ oid ] ) && empty ( $ this -> documentTranslations [ $ oid ] [ $ locale ] ) && array_key_exists ( $ locale , $ this -> documentTranslations [ $ oid ] ) ; }
Checks if the translation was removed
Note it also returns true if the document isn't translated
or was not translated into the given locale, ie.
it does not check if there is a translation for the given locale.

@param object $document
@param string $locale

@return bool
Checks if the translation was removed Note it also returns true if the document isn t translated or was not translated into the given locale ie . it does not check if there is a translation for the given locale .