switch if and else clause here. Else clause is a single line which can be used to return early and keep the next large block left. And keeping stuff left is always nice.