Move the HasLoop method from the SCC class to the iterator class