check if appid is undefined