Checks if a given attribute is mass-fillable.

Returns true if the attribute can be filled, false if it can't.

@param string $name

@return bool
505266
private function is_fillable( $name ) {
		// If this model isn't guarded, everything is fillable.
		if ( ! $this->is_guarded ) {
			return true;
		}

		// If it's in the fillable array, then it's fillable.
		if ( in_array( $name, $this->fillable ) ) {
			return true;
		}

		// If it's explicitly guarded, then it's not fillable.
		if ( in_array( $name, $this->guarded ) ) {
			return false;
		}

		// If fillable hasn't been defined, then everything else fillable.
		return ! $this->fillable;
	}
1130644
public static function checkCurrencyAvailabilityByName($name)
    {
        $available = false;
        if (array_key_exists(strtoupper($name), self::$currencies)) {
            $available = true;
        }
        return $available;
    }
250419
public function getLimit($name)
    {
        if (isset($this->limits[$name])) {
            return $this->limits[$name];
        }

        return false;
    }
534076
public function issetAttribute($name)
    {
        try {
            if (parent::__get($name) !== null) {
                return true;
            }
        } catch (Exception $ignore) {
        }

        $path = explode('.', $name);
        $ref = &$this->_dynamicAttributes;

        foreach ($path as $key) {
            if (!isset($ref[$key])) {
                return false;
            }
            $ref = &$ref[$key];
        }

        return true;
    }
88964
public function hasAttribute( $name )
    {
        return in_array( $name, array_keys( $this->attributes ) ) || isset( $this->dynamicAttributeFunctions[$name] );
    }
915884
public function checkField($name)
    {
        return (!in_array($name, $this->fields())) ?  $this->addFields([$name=>'string']) : true;
    }
1119278
protected function isRoleNameAlreadyUsed(Keyword $name): bool
    {
        $roles = Foundation::acl()->roles()->get();

        return $name->searchIn($roles) !== false;
    }
1107954
public function hasImage(string $name) : bool
    {
        return $this->imageContentAreas->any(function (ImageContentArea $contentArea) use ($name) {
            return $contentArea->image->isValidImage() && $contentArea->name === $name;
        });
    }
1220776
public function __isset($name) {
		// Property exists
		if (isset($this->_data[$name])) {
			return true;
		}
		
		// Init method exists
		if (method_exists($this, lcfirst($name) . self::INIT_POSTFIX)) {
			return true;
		}
		
		// Init source exists
		if (! empty($this->_sources[$name])) {
			return true;
		}
		
		return false;
	}
393086
public function isFillable($key)
    {
        if (static::$unguarded) {
            return true;
        }

        // If the key is in the "fillable" array, we can of course assume that it's
        // a fillable attribute. Otherwise, we will check the guarded array when
        // we need to determine if the attribute is black-listed on the model.
        if (in_array($key, $this->getFillable())) {
            return true;
        }

        if ($this->isGuarded($key)) {
            return false;
        }
        return empty($this->getFillable()) && !(substr($key, 0, 1) === '_');
    }
879505
public function hasAttribute($name) {
		if ($this->_attributes === null) {
			$this->initAttributes();
		}
		
		return isset($this->_attributes[$name]);
	}
1285587
public function isPropertyAvailable($name)
    {
        return isset($this->properties[$name]) && !isset($this->properties[$name]->__deferred);
    }
1144614
public function __isset($name) {

        if (isset($this->_writeProperties[$name])) {
            
            return true;
        }

        return isset($this->_readProperties[$name]);
    }
1334589
public static function has($name)
    {
        return (self::find()->where([self::getNameAttribute() => $name])->one()) ? true : false;
    }
112134
public function isNameAvailable( $name, $fields = array() )
    {
        $fields = (object) $fields;

        return ! $this->getMapper()
                      ->isNameExists(
                            $name,
                            empty( $fields->id ) ? null : $fields->id
                        );
    }
258491
public function __isset($name)
    {
        $name = Type::snake_case($name);
        return isset($this->constraints[$name]);
    }
378295
public function isSaved( string $name ): bool
	{
		return $this->load($name) !== false || $this->memcached->getResultCode() !== \Memcached::RES_NOTFOUND;
	}