Change the response checking method for code clarity