test if pll_languages did not reutrn false, before counting or using the
languages_array
the api's pll_languages_list has a rather strange behaviour of returning
'false' if there are no languages instead of returning an empty array or
null - that's why it is necessary to check for 'false'