Use pattern matching to know if the finalizer needs data or not