is a common shortcut syntax; quick, easy, and perfectly fine for short, simple succeed-or-fail situations, such as issuing error messages on failed commands. It can also sometimes
be good for readability, since you can reduce redundant clutter in your code.
Be aware though that there is a common pitfall
involved with this pattern.
For longer, more complex conditionals, or if what's happening can be in any way hard to understand at a glance, it's generally better to stick with the traditional if