removed extra spaces before an if and unless