public function isDirty($fields = [])
    {
        if (!is_array($fields)) {
            $fields = [$fields];
        }

        foreach ($fields as $field) {
            $field = $this->normalizeFieldName($field);

            if (array_key_exists($field, $this->dirty)) {
                return true;
            }
        }

        return false;
    }
public function isDirty($fields = [])
    {
        if (!is_array($fields)) {
            $fields = [$fields];
        }

        foreach ($fields as $field) {
            $field = $this->normalizeFieldName($field);

            if (array_key_exists($field, $this->dirty)) {
                return true;
            }
        }

        return false;
    }
public function isDirty ( $ fields = [ ] ) { if ( ! is_array ( $ fields ) ) { $ fields = [ $ fields ] ; } foreach ( $ fields as $ field ) { $ field = $ this -> normalizeFieldName ( $ field ) ; if ( array_key_exists ( $ field , $ this -> dirty ) ) { return true ; } } return false ; }
Will return true if any of the specified fields are dirty.

@param string|array $field

@return bool
Will return true if any of the specified fields are dirty .