modify args undefined check