resolving #9969

Resolving https://github.com/owncloud/core/issues/9969
Should be `!in_array()`