BUGFIX
Fix undefined array key issues, cherry-pick fix from https://github.com/tpwd/ke_search/commit/5a9ce7063ce89c4de249e720a91490930a885edf
Fix regression caused by "mixed" type hint which is not available for PHP 7.4, see github.com/tpwd/ke_search/issues/166