compact if statement