0

sed / Hexagony 32 bytes
/$/ctrick
#;/;\t.t.ae..|..;..;@
sed
Try it Online!
The first line prints trick if there is an empty string at the end of input. (sed doesn't do anything if there isn't input, but a blank line on stdin is allowed in this case)
Example run:
$ echo | sed -f TrickOrT...