Add check for $1 being set
Add check for missing $1
Add check for missing $1