This is redundant because of the outer if