added safety check for session utils methods