please write as if (ntv->h == NULL) { instead