Remove unneeded 'if' element.