Maybe it wouldn't be bad to use Kohana::$environment comparison for setting these 3 booleans ?