if liststructure input is null

if (n == 0)