added an if for empty entry list