Use the correct conditional when deciding whether or not to show the alert flash.