Put the variable after the comparison.

Instead of:

if (myVariable == null)

Use:

if (null == myVariable)

Why? If you mess up the comparison operator and only put in a single quote, myVariable will not get reset.

Winning.