Simply don't do anything if main class is empty.