use -n instead of ! -z