Error message

Warning: Trying to access array offset on value of type bool in Drupal\city\Controller\SettingController->privacypolicy() (line 127 of modules/custom/city/src/Controller/SettingController.php).