def METHOD_NAME(self, name) -> bool:
    """
    Returns if the layer has a given field.
    :param name: The field name.
    """
    path = '%s.%s' % (self.layer_name, name)
    return check_layer_field_exists(self._packet, path)