Too deep if.
Let rewrite it like
```
if (Statuses.size() == 0 && KeepAliveCount < SubscriptionData.RevizedMaxKeepAliveCount ) 
{
      ++KeepAliveCount;
      return  resultlist; //No event and we do not need to send keepalive notification yet so return empty list
}
std::cout << "Sending KeepAlive Notification" << std::endl;
```