return 1 unless ($flag // 0); ... if $HAS_FOCUS // ''; #### return 1 unless $flag; ... if $HAS_FOCUS;