I meant to explicitly say in the text that the functions are defined (i.e. will return a proper heading) if all the parameters are defined and not null.