sub foo { return ( shift->{some_obj}->some_method ) ? 1 : 0; }