C: fix logical return problem in IsCOW