Guard against nil exception