check if peers slice is non-empty before accessing first element add retry mechanism for connection verification with 1s timeout improve error message when no peers are found