Add response check (will rise a TypeError if something goes wrong)