private function isAttributeAuditable($attribute)
{
// Checks if the field is in the collection of auditable
if (isset($this->doKeep) && in_array($attribute, $this->doKeep)) {
return true;
}
// Checks if the field is in the collection of non-auditable
if (isset($this->dontKeep) && in_array($attribute, $this->dontKeep)) {
return false;
}
// Checks whether the auditable list is clean
return empty($this->doKeep);
}