It seems unnecessary because the above if clause checks the same condition.