Fixed a boolean check that was broken by overzealous lint fixing!