Here are some proofs in the Fitch system:
$\def\fitch#1#2{\begin{array}{|l}#1 \\ \hline #2\end{array}}$
$\fitch{
1.
}{
\fitch{
2.\exists x. \bot}{
\fitch{
3.\bot
}{
4.P \quad \bot \text{ Elim } 3}
\\
5.P \quad \exists \text{ Elim } 2, 3-4} \\
6. \exists x. \bot \rightarrow P \quad \rightarrow \text{ Intro } 2-5}$
$\fitch{
1. \exists x. \top
}{
\fitch{
2.\forall x. \bot}{
3.\bot \quad \forall \text{ Elim } 2\\
4.P \quad \bot \text{ Elim } 3}
\\
5. \forall x. \bot \rightarrow P \quad \rightarrow \text{ Intro } 2-4}$
Note that for the second proof you never use the $\exists x. \top$. Indeed, $\forall x. \bot \rightarrow P$ is valid all by itself.