james | adding null guard to secret path.