protected function getPropertyBasedOnPatch($data, $key, $default, $patch)
    {
        if (!$patch) {
            $default = null;
        }

        return $this->getProperty($data, $key, $default);
    }