What you want to do here is:

```
{% if include.lang %}
    {% assign languages = include.lang %}
{% else %}
    {% assign languages = "en" %}
{% endif %}
{% assign languages = languages | split: "|" %}
```

This makes sure you're always dealing with an array.