Simplified expression with if-let