You could use `if($addhideInLocale && Fluent::is_frontend())` here.