remove size is 0 check