my $object = $other_object->get_object; my $result = $object ? $object->possible_method : undef;