Remove superfluous if statement