I was looking through many snippets of code, and I have found that people can use the following two methods in an if statement:
if
Method 1:
They are both exactly equivalent. Consult your organization's style guide to determine which you should use.