If you refactor as I suggest above https://github.com/facebook/xctool/pull/201/files#r6928054, you won't need the conditional.