code: def _size_is_needed(layer):
      exposure = layer.keywords.get('exposure')
      if not exposure:
          return False
      indivisible_exposure_keys = [f['key'] for f in indivisible_exposure]
      if exposure in indivisible_exposure_keys:
          return False
      if layer.geometryType() == QgsWkbTypes.PointGeometry:
          return False
      fields = layer.keywords['inasafe_fields']
      absolute_field_keys = [f['key'] for f in count_fields]
      for field in fields:
          if field in absolute_field_keys:
              return True
      else:
          return False