The undef native determines if a scalar value is un-defined:
print "We received a response from the server.\n" unless undef $response;