Helper checks for flash message on init