if statement confirled fix(thanks cykey) attempted fixing empty alert bug