Object isEmpty is a non Enumberable property of the prototype on the Object, payload is set to the same var in all if branches, headers are correctly sent even if you don't use cookies