No need for a goto here, can just directly return NULL