Helper for response success check