Simplified the if statement
Capitalized the comments