I reversed the if-check at the beginning so that we can un-indent the whole code by one. Much nicer to read that way.