Added comment to the first alert and the ternary.