private function mergeData(array $base, array $replacements)
    {
        return array_filter(array_merge($base, $replacements), function($value) {
            return $value !== null;
        });
    }
private function mergeData(array $base, array $replacements)
    {
        return array_filter(array_merge($base, $replacements), function($value) {
            return $value !== null;
        });
    }
private function mergeData ( array $ base , array $ replacements ) { return array_filter ( array_merge ( $ base , $ replacements ) , function ( $ value ) { return $ value !== null ; } ) ; }
Merge data and removing null values.

@param  array $base         The array in which elements are replaced
@param  array $replacements The array from which elements will be extracted
@return array
Merge data and removing null values .