Write checks null if values are same.