recognize if a led is connected on a digital out

do you mean for the Arduino to electrically see if an LED is connected or not, rather than checking to see if it lights?