public function getParsedBodyParam($name, $defaultValue = null)
    {
        $params = $this->getParsedBody();

        if (is_object($params)) {
            // unable to use `ArrayHelper::getValue()` due to different dots in key logic and lack of exception handling
            try {
                return $params->{$name};
            } catch (\Exception $e) {
                return $defaultValue;
            }
        }

        return $params[$name] ?? $defaultValue;
    }