private function mergeData(array $base, array $replacements)
    {
        return array_filter(array_merge($base, $replacements), function($value) {
            return $value !== null;
        });
    }