Let $X$ be a complete metric space. Show that $E \subset X$ is nowhere dense if and only if for each open subset $U$ of $X$, the intersection $E \cap U$ is not dense in $U$. We say that $E$ is nowhere dense if $\text{int}(\overline{E}) = \emptyset$.
My attempt:
($\Rightarrow$) Assume $E \subset X$ is nowhere dense. Suppose for the sake of contradiction that $E \cap U$ is dense in $U$ for some open set $U$. Then $\overline{E \cap U} = U$, and so $U = \overline{E \cap U} \subset \overline{E}$. But because $E$ is nowhere dense, $\overline{E}$ contains no open sets. This is a contradiction, and so we must have that $E \cap U$ is not dense in $U$. \
($\Leftarrow$) Assume that for each open subset $U$ of $X$, the intersection $E \cap U$ is not dense in $U$. Suppose for the sake of contradiction that $E$ is not nowhere dense. This means that for some nonempty open set $U$, $\text{int}(\overline{E}) = U$. I feel like this should lead to a contradiction, but I cannot quite see how it falls out.