Does the function $f(x) \ = \ |x|e^x$ have a derivative at $x = 0$?
If we split it into two sides
$$f(x) = \begin{cases} xe^x, & \text{if $\geq 0$} \\ -xe^x, & \text{if $x<0$} \end{cases} $$ & $$f'(x) = \begin{cases} (x+1)e^x, & \text{if $x \geq 0$} \\ -(x+1)e^x, & \text{if $x<0$} \end{cases} $$ so
$\lim\limits_{x \to 0^+} \ (x+1)e^x = 1$,
and
$\lim\limits_{x \to 0^-} \ -(x+1)e^x = -1$
so we can say that the function doesn't have derivative a derivative at zero? Is this correct?
You are correct that the function does not have a derivative at $x = 0$. Since the derivative of $xe^x, x \geq 0$ is defined in the open interval $(0, \infty)$ and the derivative of $-xe^x, x < 0$ is defined in the open interval $(-\infty, 0)$, we cannot write $$f'(x) = \begin{cases} (x + 1)e^x & \text{if $x \color{red}{\geq} 0$}\\ -(x + 1)e^x & \text{if $x < 0$} \end{cases} $$ What you should have written is $$f'(x) = \begin{cases} (x + 1)e^x & \text{if $x > 0$}\\ -(x + 1)e^x & \text{if $x < 0$} \end{cases} $$ then tested the left- and right-sided limits, as you later did, to determine whether $f'(0)$ exists.