check branches are of type list