proper check for empty variable
fix typos in comments