Refactoring to use the #values method to get the array of languages