nil check in net widget