This should be check from $config variable 
```php
if ($config['display_language_switch']) {

}
```