fix: test if view exist before setting ir_option_loaded option.