Added check to @fork to see if iterator is empty.