Input.GetJoystickNames().Length > 0 will return true if there is a joystick present, and hence a controller plugged in