hasLoop