Check that name and idx are not null