original_string: public function entityHasTranslation(string $entityName): bool
      {
          $hasKey = in_array($entityName, $this->translationModelKeys());
  
          if ($hasKey) {
              return ! empty($hasKey);
          }
  
          return false;
      }
code: public function entityHasTranslation(string $entityName): bool
      {
          $hasKey = in_array($entityName, $this->translationModelKeys());
  
          if ($hasKey) {
              return ! empty($hasKey);
          }
  
          return false;
      }
code_tokens: public function entityHasTranslation ( string $ entityName ) : bool { $ hasKey = in_array ( $ entityName , $ this -> translationModelKeys ( ) ) ; if ( $ hasKey ) { return ! empty ( $ hasKey ) ; } return false ; }
docstring: Check if entity returned on ModelNotFoundException has translation on
  exceptions file
  @param  string $entityName The model name to check if has translation
  @return bool               Has translation or not
docstring_tokens: Check if entity returned on ModelNotFoundException has translation on exceptions file