adds isset for session messages