Set value unless undefined