Actually, the whole block is just this expression.
`return isset($backends[$backend]) && (is_null($user) || isset($personalBackends[$backend]))`