Is this correct?

Code:
if (foo != null) {
  //mojo
}