However, apart from the indentation question, this should be an unless block if you can't fit it all on one line with a trailing unless