changed operator of loop in is_Empty from != to >=