Im making a setup screen for my sports game. What i want it to do is to enable the controller icon if it detects the controller

// Use this for initialization
void Start()
{
if (Input.GetJoystickNames()[0] == "true")
{
playerOne.SetActive(true);
}
else
{
playerOne.SetActive(false);
}
if (Input.GetJoystickNames()[1] == "true")
{
playerTwo.SetActive(true);
}
else
{
playerTwo.SetActive(false);
}
}
The main problem is that when the player one controller is detected the icon disables and te player two icon is enabled