Adds a check in case of absence of labels paramter