From `man sh`:
> If the reserved word ! does not precede the pipeline, the exit status is the exit status of the last command specified in the pipeline.
     Otherwise, the exit status is the logical NOT of the exit status of the last command.  That is, if the last command returns zero, the
     exit status is 1; if the last command returns greater than zero, the exit status is zero.