I think the diff is confusing you. The check was previously being done outside of the case statement.