Nevermind, my condition is totally wrong :) It is very late in my country :) Maybe something like that?

``` php
if ((!is_string($language) || !((strlen($language) === 2) || (strlen($language) === 5))) && ($language !== null)) {
```