wrong undefined check