public static function copyIfSet(array $source, array &$dest, array $keyMap)
    {
        $callable = function (array $source, $key) {
            return isset($source[$key]);
        };
        self::copyValueIf($source, $dest, $keyMap, $callable);
    }
public static function copyIfSet(array $source, array &$dest, array $keyMap)
    {
        $callable = function (array $source, $key) {
            return isset($source[$key]);
        };
        self::copyValueIf($source, $dest, $keyMap, $callable);
    }
public static function copyIfSet ( array $ source , array & $ dest , array $ keyMap ) { $ callable = function ( array $ source , $ key ) { return isset ( $ source [ $ key ] ) ; } ; self :: copyValueIf ( $ source , $ dest , $ keyMap , $ callable ) ; }
Sets destination array values to be the source values if the source key is set in the source array.

@param array $source
@param array &$dest
@param array $keyMap mapping of dest keys to source keys. If $keyMap is associative, the keys will be the
destination keys. If numeric the values will be the destination keys

@return void
Sets destination array values to be the source values if the source key is set in the source array .