def has_data(self):
ndims = self._info.get('<STR_LIT>', <NUM_LIT:0>)<EOL>if ndims == <NUM_LIT:0>:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
Determine if this HDU has any data

For images, check that the dimensions are not zero.

For tables, check that the row count is not zero