You could make the `} else {` above an `} else if {`, that saves you some indentation.

Feel free to squash and push -f.