better: lang_list = [lang for lang in self.language_1, self.language_2, self.language_3 if lang]