only set the value if it exists