Superfluous if block