Alert for the else has been added along with comments.