Refactor if-else statement to improve readability