if the list is not null

if(*phead != null)