break up if into two statements