Given how simple the code is, one could even write this as:
if (configuration) { configuration->perform_update = perform; }