enhanced logic to not display alert highlighting if no value