Added function hasTranslation

this function checks if there is a translation