public static function isOn($exception = false)
    {
        if (isset($_SESSION)) {
            return true;
        }

        exception_if($exception, SessionSurfaceIsOffException::class);

        return false;
    }