5488 added query to get cusom language, then check if regular language exists in the custom array