invert this condition and save a level of indentation?