Check the type of if condition