Is there any way to redirect page to front page, if it isn't translated?
To get current node:

$node = \Drupal::routeMatch()-&gt;getParameter('node');
if ($node) {
  $node_type = $node-&gt;getType();
}


Current language:

$language = \Drupal::languageManager()-&gt;getCurrentLanguage();
$langcode = $language-&gt;getId();
$language_name = $language-&gt;getName();


Check if translation is not available and redirect:

use Drupal\Core\Url;
use Symfony\Component\HttpFoundation\RedirectResponse;

$translation = $node-&gt;getTranslation($langcode);
if (!$translation) {
  $url = Url::fromRoute('&lt;front&gt;', [], ['language' =&gt; $language]);
  $response = new RedirectResponse($url-&gt;toString());
  $response-&gt;send();
}


P.S.: I believe entity query you posted is a simplified version of smth more complex in your logic. Otherwise I see no reason to pass node id to entity query condition to get it back eventually. If you always have just one node use Node::load($id) instead of Node::loadMultiple($ids), and you don't need foreach in this case.