The two bits of code above are not logically the same. See the following truth table where A is the code posted by lph and B is the code posted by Arantor.
Code:
ABSPATH WP_UNINSTALL_PLUGIN A B
TRUE TRUE TRUE TRUE
TRUE FALSE TRUE FALSE
FALSE TRUE FALSE FALSE
FALSE FALSE FALSE FALSE
It is actually the second line that is unnecessary because for that line to be true, it would require that ABSPATH is not defined, but we have already determined from the first line that it is defined.