Change checking undefined
Change checking undefined