code: def has_pixels(self):
          
          return any(
              ci.id >= 0 and cd.data and len(cd.data) > 0
              for ci, cd in zip(self._record.channel_info, self._channels)
          )
docs: Returns True if the layer has associated pixels. When this is True,
          `topil` method returns :py:class:`PIL.Image`.
  
          :return: `bool`