preventing empty and not existing languages