public function getOptionalParam($path, $default = false)
    {
        $this->validatePath($path);

        $value = $this->translatePathElement($path, $this->params);

        if(null === $value)
        {
            return (null === $default) ? null : $default;
        }

        return $value;
    }