check expanded form of if statement