Get the return code of a command before a pipe in Bash

Today I discovered a great functionality in bash:

hrivas@ADWMU001:~> false | cat ; echo $? ${PIPESTATUS[0]} 0 1

Great!