Couldn't this line just be changed to `} else {` instead?