Alert has been added with a comment for the if statement.