This is necessary to write code that follows a different strategy depending on whether a grid contains grid data or not.