Can anyone tell me why I am wrong? I get TLE and "[3,2,0,-4] tail connects to node index 1"

```
public class Solution {
public boolean hasCycle(ListNode head) {
if (head == null) {
return false;
}
ListNode current = head.next;
while(current != head && current != null) {
current = current.next;
}
if (current == head) {
return true;
}
if (current == null) {
return false;
}
return false;
}
}
```