diff --git a/extension/Classes/Core/Form/TypeAhead.php b/extension/Classes/Core/Form/TypeAhead.php
index 4f2db5febc30f33bc2dd504ff0cd818e0325617f..a4020472294a82367f898112a6145e4702f75c99 100644
--- a/extension/Classes/Core/Form/TypeAhead.php
+++ b/extension/Classes/Core/Form/TypeAhead.php
@@ -71,7 +71,7 @@ class TypeAhead {
 
         // Check for an optional given dbIndex: '[<int>]SELECT ...'
         $sql = $sipVars[FE_TYPEAHEAD_SQL] ?? '';
-        if ($sql[0] ?? '' === '[') {
+        if (($sql[0] ?? '') === '[') {
             $pos = strpos($sql, ']');
             $dbIndex = substr($sql, 1, $pos - 1);
             $sipVars[FE_TYPEAHEAD_SQL] = substr($sql, $pos + 1);