Checking for extraneous roots in an absolute value equation