protected function getBooleanValue($path) { $normalizedPath = strtolower($path); if (in_array($normalizedPath, ['true', 'on', 'yes'])) { return true; } if (in_array($normalizedPath, ['false', 'off', 'no'])) { return false; } return null; }