가능한 경우 부울 return을 동등한 if-then-else 문으로 대체합니다.