This and many others could be written more tersely (FWIW):
return configuration ? configuration->command : NULL;