Only set values if they're not nil