Can you make the whole condition on one line? Perhaps you can create a variable before for the closure?