set variable to 'None' if it does not exist