diff --git a/lib/FSi/DoctrineExtensions/Translatable/Entity/Repository/TranslatableRepository.php b/lib/FSi/DoctrineExtensions/Translatable/Entity/Repository/TranslatableRepository.php
index <HASH>..<HASH> 100644
--- a/lib/FSi/DoctrineExtensions/Translatable/Entity/Repository/TranslatableRepository.php
+++ b/lib/FSi/DoctrineExtensions/Translatable/Entity/Repository/TranslatableRepository.php
@@ -341,12 +341,11 @@ class TranslatableRepository extends EntityRepository
     protected function areTranslationsIndexedByLocale($translationAssociation)
     {
         $translationAssociationMapping = $this->getClassMetadata()->getAssociationMapping($translationAssociation);
-        $translationExtendedMeta = $this->getTranslationExtendedMetadata($translationAssociation);
-
         if (!isset($translationAssociationMapping['indexBy'])) {
             return false;
         }
 
+        $translationExtendedMeta = $this->getTranslationExtendedMetadata($translationAssociation);
         return ($translationAssociationMapping['indexBy'] == $translationExtendedMeta->localeProperty);
     }
Micro-optimization in TranslatableRepository