Simplified if statement