Merging if.