check for undefined values in updatescript