only check if var session is null