I use this environment for an equation system:
\newenvironment{sistema}{\left\lbrace\begin{array}{@{}l@{}}}{\end{array}\right.}
But in this way the "if-conditions" are not aligned, as an example:
\[
\lvert a \rvert =
\begin{sistema}
a \quad \text{if } a > 0 \\
-a \quad \text{otherwise}
\end{sistema}
\]
Is it possible to align them? (Or even simpler) is there any other enviroment that build sytems automatically?