protected function addIfSetAndNotEmpty(array &$targetArray, $targetKey, $source, $sourceKey)
    {
        if (is_array($source)) {
            if (!empty($source[$sourceKey])) {
                $targetArray[$targetKey] = $source[$sourceKey];
                return true;
            }
        } else {
            if (!empty($source->$sourceKey)) {
                $targetArray[$targetKey] = $source->$sourceKey;
                return true;
            }
        }
        return false;
    }