Alert for the else has been added to the second question along with comments.