Break up long if statement into two lines