Guard against nil value