The four boundary points -1, 0, 1, and 2 divide the number line into 5 regions. That gives 5 cases that must be solved (including each boundary point in one neighboring region). I see nothing shorter than that. So you have done just a little more work than needed, in your awkward way of finding cases, and your one extra case.