What is the correct definition of the absolute value of $x$, $|x|$?
Option A
$$ |x|= \begin{cases} -x&\text{if } x < 0\\ 0& \text{if } x=0\\ x&\text{if } x>0 \end{cases} $$
Option B
$$ |x|= \begin{cases} -x&\text{if } x \leq 0\\ x&\text{if } x>0 \end{cases} $$
Option C
$$ |x|= \begin{cases} -x&\text{if } x < 0\\ x&\text{if } x\geq 0 \end{cases} $$
What about Option D? That is:
$$|x|=\begin{cases}-x & x<0\\ x^2 & x=0,x=1\\ x & \text{otherwise}.\end{cases}$$
In all seriousness, there are infinitely-many (seemingly) distinct ways to define $|x|$ piecewise, but in the end, they are precisely the same. All you've got to do is pick one.