Check whether a property is defined in the internal bag

@param string $property

@return bool
430322
public function has($property)
    {
        $defaultCurrentValue = [];
        $data = $this->session->get($this->_name, $defaultCurrentValue);

        return isset($data[$property]);
    }
35307
protected function hasProperty(string $resourceClass, string $property): bool
    {
        return \in_array($property, iterator_to_array($this->getProperties($resourceClass)), true);
    }
544977
public function count($property = null) {
		if ($property === null) {
			return count($this->_map);
		}
		
		if (is_array($property)) {
			$reduceFunction = function(&$result, &$item) use($property) {
				foreach ($property as $part) {
					if (! isset($item[$part])) {
						return;
					}
				}
				
				return $result + 1;
			};
		} else {
			$reduceFunction = function(&$result, &$item) use($property) {
				if (isset($item[$property])) {
					return $result + 1;
				};
			};
		}
		
		return (int) array_reduce($this->_data, $reduceFunction, 0);
	}
424451
public function hasProperty($strProperty){
		$strProperty = $this->_formatPropertyName($strProperty);
		if(in_array($strProperty, $this->_arrProperties)){
			return true;
		}
		return false;
	}
1051466
public function __isset($property)
	{
		if (array_key_exists($property, static::properties()))
		{
			return true;
		}
		elseif (static::relations($property))
		{
			return true;
		}
		elseif ($this->_get_eav($property, true))
		{
			return true;
		}
		elseif (array_key_exists($property, $this->_custom_data))
		{
			return true;
		}

		return false;
	}
990000
public function isAccessibleFrom(string $property, $class) : bool
    {
        return isset($this->propertyAccessibilityMap[$property])
                ? $this->propertyAccessibilityMap[$property]->isAccessibleFrom($class)
                : false;
    }
477880
public static function get_property_definition($property) {

        self::fill_properties_cache();

        if (!array_key_exists($property, self::$propertiescache)) {
            throw new coding_exception('Invalid property requested.');
        }

        return self::$propertiescache[$property];
    }
895797
public function __isset($property)
    {
        $name = ltrim($property, '_');
        $vars = get_object_vars($this);

        return isset($vars['_'.$name]);
    }
1081843
final public function __isset($name): bool
    {
        if ($this->propertyStorage->propertyExists($name)) {
            return true;
        }
        return parent::__isset($name);
    }
292601
public function __isset($property)
    {
        if (method_exists($this, $getter = 'get' . $property)) {
            return $this->$getter() !== null;
        } else {
            return false;
        }
    }
137412
public function isSort($property = null)
    {
        if (is_null($property)) {
            return $this->sorts->isEmpty();
        }

        if ($this->sorts->search($property, true) !== false) {
            return true;
        }

        if ($this->sorts->search('-'.$property, true) !== false) {
            return true;
        }

        return false;
    }
301211
function has($key)
    {
        return (array_key_exists($key, $this->properties)) && $this->properties[$key] !== null;
    }
449985
public function isEmptyProperty($property)
    {
        foreach ($this->models as $model) {
            if ($model->$property) {
                return false;
            }
        }

        return true;
    }
925109
protected function _hasProperty($path)
    {
        if (is_a($path, 'stdClass')) {
            $path = $path->dotted;
        }

        $current = $this->_document;
        $parts = strtok($path, '.');

        while ($parts !== false) {
            if (!array_key_exists($parts, $current)) {
                return false;
            }
            $current = $current[$parts];
            $parts = strtok('.');
        }

        return true;
    }
961948
public function __isset($name)
    {
        $normalized = lcfirst($name);
        $property = "_{$normalized}";
        if (property_exists($this, $property)) {
            return true;
        }
        return false;
    }
1290899
public function &__get($property)
    {
        $get[ $property ] = false;

        // CodeIgniter property aliasing
        if ($property === 'load') {
            $property = 'loader';
        }

        if (services()->has($property)) {
            $get[ $property ] = services()->get($property);
        } elseif (o2system()->__isset($property)) {
            $get[ $property ] = o2system()->__get($property);
        } elseif ($property === 'model') {
            $get[ $property ] = models('controller');
        } elseif ($property === 'services' || $property === 'libraries') {
            $get[ $property ] = services();
        }

        return $get[ $property ];
    }
1150192
public function setPropertyDefaultValue($property)
    {
        if (isset($property->default)) {
            // Use the defined default.
            return true;
        } elseif (isset($property->enum) && count($property->enum) == 1) {
            // Set default to single enum.
            $property->default = reset($property->enum);

            return true;
        }

        return false;
    }