sub foo { return 1 if shift->{some_obj}->some_method; return; }