Put these two into one line:

if [ -z $1 ]; then

to be consistent with all scripts.