use -z instead of -n

-z: string is null, that is, has zero length)
-n: string is not null.