only assign scope variable related_issues or highlighted_features only when lengths are greater than zero