Why $a$ is not an essential singularity and how $f$ can be extended in our online lecture we had the following statement but I don't see exactly why it's true , if anyone could explain me why  it would be appreciated.


We have  $a \in \mathbb{C}$ a complex number and $r \in \mathbb{R}$ with $r>0$. Let $U=\mathbb{D}(a,r)\ _{\diagdown \left\{a \right\}}$ and $f \in O(U)$ a holomorphic function such that $Re(f(z)) \geq 0 \; \forall z \in U$.


And it says that $f$ can be extended ( in a holomorphic function )  all over the disk $\mathbb{D}(a,r)$ and that $a$ isn't a essential singular point. 
Thanks in advance for your help .

Another way which may or may not be easier than @Robert solution is to notice that if $\Re a \ge 0$ then $|a-1| \le |a+1|$ (and of course $|a+1| \ne 0$), so $B=\frac{f-1}{f+1}$ is bounded by $1$ in the punctured disc, hence $B$ extends to an analytic function in the full disc with $B(a) \ne 1$ since even if $B$ constant it cannot be $1$ as $-1 \ne 1$ so $f=\frac{1+B}{1-B}$ extends then to the full disc.
