What a crazy condition, could you break it down to more lines a bit more and add more comments?