The JavaScript logical AND operator doesn't evaluate the second expression if the first is false. You can use this
to your advantage and save yourself from having to write a full if-statement: