Whether a list has a loop?