Guard against a possible null value