Added hasFlash method to session.