Update_gap checking to emptyness