Could you rewrite this conditional in a non-inlined way?