Check if row was deleted (not found in new rows).

@param $row
@param $attribute
@return bool
164005
protected function isDeletedRow($row, $attribute)
    {
        $rowAttribute = $row;
        unset($rowAttribute[$this->relationalData[$attribute]['junctionColumn']]);

        foreach ($this->relationalData[$attribute]['newRows'] as $newRow) {
            $newRowAttributes = $newRow;
            unset($newRowAttributes[$this->relationalData[$attribute]['junctionColumn']]);
            if ($newRowAttributes == $rowAttribute) {
                return false;
            }
        }

        return true;
    }
647336
protected function shouldStopValidating($attribute)
    {
        if ($this->hasRule($attribute, ['Bail'])) {
            return $this->messages->has($attribute);
        }

        if (isset($this->failedRules[$attribute]) &&
            array_key_exists('uploaded', $this->failedRules[$attribute])) {
            return true;
        }

        // In case the attribute has any rule that indicates that the field is required
        // and that rule already failed then we should stop validation at this point
        // as now there is no point in calling other rules with this field empty.
        return $this->hasRule($attribute, $this->implicitRules) &&
               isset($this->failedRules[$attribute]) &&
               array_intersect(array_keys($this->failedRules[$attribute]), $this->implicitRules);
    }
170101
public function removeRow(GridRow $row)
    {
        if ($this->rows->contains($row)) {
            $this->rows->removeElement($row);
        }
    }
915658
public function rowValue($attribute, $template)
    {
        if (! empty($template)) {
            if (! is_callable($template) && Arr::get($this->data, $template)) {
                $this->data[$attribute] = Arr::get($this->data, $template);
            } else {
                $this->data[$attribute] = Helper::compileContent($template, $this->data, $this->row);
            }
        }

        return $this;
    }
865902
private function isBooleanAttribute($attribute)
    {
        return array_search(trim($attribute), $this->repository->getAttributes()) || Html::isDataAttribute($attribute);
    }
361198
function propertyExists($attribute, $property) {
    return array_key_exists($attribute, $this->__attributes)
        && array_key_exists($property,  $this->__attributes[$attribute]);
  }
893207
public function removeRow($row)
    {
        foreach ($this->getCellList() as $coord) {
            sscanf($coord, '%[A-Z]%d', $c, $r);
            if ($r == $row) {
                $this->deleteCacheData($coord);
            }
        }
    }
930967
protected function containsOnlyColumnNames(array $row)
    {
        $last = count($row)-1;

        foreach ($row as $i=>$column) {
            if (!$this->isColumnName($column, $i == $last)) {
                return false;
            }
        }
        return true;
    }
1155624
public static function isRowActions($row)
    {
        return (count($row) == count(static::makeEmptyActionRow())) && isset($row[Metrics::INDEX_NB_ACTIONS]);
    }
589928
public function isEditable(Row $row = null)
	{
		return ((bool) $this->getEditableCallback())
			&& ($row === null || $this->getEditableOnConditionCallback() === null || call_user_func_array($this->getEditableOnConditionCallback(), [$row->getItem()]));
	}
127026
public function hasDirtyPreset($attribute)
    {

        // Require a previous encoding instance
        return ($encoding = $this->encoding($attribute))

            // Make sure the input actually contains a preset.  It won't in cases like
            // the AJAX PUT during listing drag and drop sorting or visibility toggle
            && ($preset_key = $this->encodingPresetInputKey($attribute))
            && request()->exists($preset_key)

            // Check if the preset has changed
            && request($preset_key) != $encoding->preset;
    }
467398
public function hasErrors($attribute = null)
    {
        if (!count($this->_errors)) {
            return false;
        }
        if ($attribute && isset($this->_errors[$attribute]) && count($this->_errors[$attribute])) {
            return true;
        } elseif ($attribute) {
            return false;
        }
        return true;
    }
783599
public function isAutomaticallyUpdatedDate($attribute)
    {
        // soft deletes
        if (in_array('Illuminate\Database\Eloquent\SoftDeletes', class_uses(static::class)) && $attribute == $this->getDeletedAtColumn()) {
            return true;
        }

        // timestamps
        if ($this->timestamps && ($attribute == $this->getCreatedAtColumn() || $attribute == $this->getUpdatedAtColumn())) {
            return true;
        }
        
        return false;
    }
1256780
protected function validateTagAttribute(string $attribute) : bool
    {
        if (!empty($this->attributePattern)) {
            $matches = [];
            return preg_match($this->attributePattern, $attribute, $matches);
        } else {
            return empty($attribute);
        }
    }
491956
private function isActiveRecordUnique($attributes) {
        /* @var $class \yii\db\ActiveRecord */
        $class = $this->className;
        return empty($attributes) ? true :
                !$class::find()->where($attributes)->exists();
    }
113736
protected function isAllowedAttribute(
        DataInterface $object,
        $attribute,
        /** @noinspection PhpUnusedParameterInspection */
        $format = null,
        array $context = []
    ) {
        // If normalizing by reference, we just check if it's among the allowed attributes
        if ($this->byReferenceHandler->isByReference($context)) {
            return \in_array($attribute, $this->referenceAttributes, true);
        }

        // Check ignored attributes
        if (\in_array($attribute, $this->ignoredAttributes, true)) {
            return false;
        }

        return $this->isGroupAllowed($object, $attribute, $context);
    }
1037523
protected function isDerivedAttribute(Attribute $attribute)
    {
        return preg_match($this->getAgePattern(), $attribute->getName()) ? true : false;
    }