Check if the pwm pin has already been exposed and validate callback.