Included testing for is_label_indicator_matrix in the case that y is sparse, removed unnecessary helper function