proper check for empty variable