Guard against a possible NULL