Setting shapesdict to None if it's empty