def METHOD_NAME(self) -> bool:
    raise_if(
        self.trend and self.trend != "c",
        "'trend' is not None. Range indexing is not supported in that case.",
        logger,
    )
    return True