Check for a valid response before processing.