Fixed the memory leak on empty grid creation
Now testing the truthiness of empty grids