return $preferredLocales ?: array();

It's a little bit more compact :smile_cat: