refacto: from let if to if-let