src/Invoice/Completor.php
protected function addDefault(array &$array, $key, $value)
    {
        if (empty($array[$key]) && !empty($value)) {
            $array[$key] = $value;
            return true;
        }
        return false;
    }
protected function addDefault(array &$array, $key, $value)
    {
        if (empty($array[$key]) && !empty($value)) {
            $array[$key] = $value;
            return true;
        }
        return false;
    }
protected function addDefault ( array & $ array , $ key , $ value ) { if ( empty ( $ array [ $ key ] ) && ! empty ( $ value ) ) { $ array [ $ key ] = $ value ; return true ; } return false ; }
Helper method to add a default non-empty value to an array.

This method will not overwrite existing values.

@param array $array
@param string $key
@param mixed $value

@return bool
Whether the default was added.
Helper method to add a default non - empty value to an array .