The question is, Given a probability space $(\Omega, F, P)$, a sigma field $G \subset F$, random variables $X,Y$ and a measurable function $\phi$ such that $X \in G$, $Y$ is independent with $G$ and $E[|\phi(X,Y)|] < \infty$. Then,
Show that $E[\phi(X,Y)|G]= g(X)$, where $g(x) = E[\phi(x,Y)]$ for all $x$.
I proved this result when $X,Y$ are independent. What is direction to prove this if independence condition is not given?