If I understand you correctly it should work both with arrays and strings?
Blade::if('routeisnot', function ($route) {
$name = \Request::route()->getName();
if (is_array($name, $route) {
return !in_array($route);
}
return $name != $route;
});