if (empty($config['system']['kill_states'])) {
$tmp = ['xx' => [] ];if (empty($tmp['xx']['non_existing'])){ echo "yeay, empty\n";}
Help text: The monitoring process will flush states when a gateway goes down if this box is not checked. Check this box to disable this behavior.
I think lines 561-563 should be removed from/usr/local/etc/inc/filter.inc, and be moved to/usr/local/etc/rc.syshook.d/monitor/10-dpinger instead.