No need for any iteration, you can just use:
UGameplayStatics::GetPlayerController(this, 0) //for singleplayer