Simplified an if statement.

Conforms with style guide.