Question: [See context below] In the formulation of the Axiom Schema of Replacement, does it matter whether we require the formula $\phi$ to represent a partial function or a total function? Is my argument below correct?
Here I asked whether, in the formulation of the Axiom Schema of Replacement, the antecedent $$ \forall A\,\forall B\,\forall C:\phi(A,B)\wedge\phi(A,C)\to B=C\tag{1} $$ could be replaced by $$ \forall A\,\forall B\,\forall C\,\forall D:B\in A\wedge\phi(B,C)\wedge\phi(B,D)\to C=D $$ That is, I wanted to know whether requiring the formula $\phi$ to be functional on a set or on the class of all sets mattered. As I understood, it turns out that no, since if $\phi$ is functional on the class of all sets then it is functional on all given sets and conversely, if $\phi$ is functional on a given set, we can extend $\phi$ to be functional on all sets using the Empty Set Axiom.
Now, in some places, the antecedent looks more strict in the sense that $\phi$ is required to be a total (intuitive) function instead of just a partial function. That is, the antecedent is given as $$ \forall A\,\exists!B:\phi(A,B)\tag{2} $$ So, I guess that it doesn't matter whether $\phi$ is required to be a partial function or a total function.
I think it's clear that the formulation with $(1)$ says everything that $(2)$ says about a universe of sets since a total function is, in particular, a partial function.
However, why does the formulation with $(2)$ include everything that $(1)$ says? I thought that metamathematically, in our intuitive universe of sets, there must be a set $E$ being the domain of the partial function in $(1)$ and that taking $A$, in $(2)$, to be that set $E$, should assert the existence of the same set...