Servo

attached()

Check whether the Servo variable is attached to a pin. Returns a boolean.

// PROTOTYPE
bool attached() const;
// SYNTAX
servo.attached()