Use a variable to explicitly define if a selection has been entered.