Determine if a given property contains data.

@param string $property_name The property to check.

@return bool true if empty, false otherwise.
775973
public function isEmpty($property_name = null)
    {
        $value = $this->get($property_name);

        return Inspector::isEmpty($value);
    }
868291
function checkProperties(name){
  var bul=false; // boolean to control if its defined the property

  for(var i=0; i<properties.length; i++){//iterate over prop names
    if(properties[i] === name){//if it is
      bul=true;
    }
  }
  if(bul!==true){// it isn't finded the statement of the tag
    throw new Error('Not defined '+name);
    }  
}
13627
private function triggerExists($trigger_name)
    {
        if ($triggers = $this->getConnection()->execute('SHOW TRIGGERS', $trigger_name)) {
            foreach ($triggers as $trigger) {
                if ($trigger['Trigger'] == $trigger_name) {
                    return true;
                }
            }
        }

        return false;
    }
1217919
public function shouldLoadFile($file_name)
    {
        $whitelisted_files = $this->whitelisted_files;
        if ($whitelisted_files === null) return true;
        if (!(in_array($file_name, $whitelisted_files) ||
                array_key_exists($file_name, $whitelisted_files))) {
            return false;
        }
        return true;
    }
891798
public static function isClass($class_name) {
    $class_names = func_get_args();

    return function ($node) use ($class_names) {
      if ($node instanceof ClassNode) {
        return in_array($node->getName()->getText(), $class_names, TRUE);
      }
      return FALSE;
    };
  }
1081843
final public function __isset($name): bool
    {
        if ($this->propertyStorage->propertyExists($name)) {
            return true;
        }
        return parent::__isset($name);
    }
955179
public function set($property_name, $value)
    {
        // Ensure the property is defined in the schema JSON.
        $property = $this->getSchemaProperty($property_name);
        if (!isset($property)) {
            $this->logger->notice('The property %property is not defined in the JSON schema.', array('%property' => $property_name));
        } else {
            if (!isset($this->property_values->$property_name)) {
                $this->property_values->$property_name = $this->getFactory()->create($property, $this->schema_path);
            }

            if (is_array($value)) {
                foreach ($value as $name => $val) {
                    $this->property_values->$property_name->set($name, $val);
                }
            } else {
                $this->property_values->$property_name->set($property_name, $value);
            }
        }

        return $this;
    }
948487
public function hasData($name = null)
    {
        if ($name !== null) {
            return is_array($this->data) && isset($this->data[$name]);
        }

        return !empty($this->data);
    }
793406
function isFulfilled($property_key = null)
    {
        if ($property_key) {
            $result = parent::isFulfilled($property_key);
        } else {
            // Fulfillment by specific property
            $result = ( self::__isset($this->fulfillment_property) && parent::__get($this->fulfillment_property) );
            $result = $result && parent::isFulfilled();
        }
        
        return $result;
    }
63768
public function getCleanedFieldAsBool(string $field_name): bool
    {
        if (empty($this->initial_data[$field_name])) {
            return false;
        }

        // Usually string "false" from javascript interpreted as true, but it must be false
        if ('false' === $this->initial_data[$field_name]) {
            return false;
        }

        return (bool)$this->initial_data[$field_name];
    }
1217218
public boolean hasProperty(String name) {
        for (SyntheticProperty prop : mPropertyList) {
            if (prop.getName().equals(name)) {
                return true;
            }
        }
        return false;
    }
758344
public boolean hasProperty(String name) {
		if (StringUtils.isBlank(name)) {
			return false;
		}
		return getProperties().containsKey(name);
	}
581290
function isFulfilled($property_key = null)
    {
        if ($property_key) {
            $result = parent::isFulfilled($property_key);
        } else {
            // Fulfillment by specific property
            $result = ($this->getUsername() !== null && $this->getHash() !== null);
            $result = $result && parent::isFulfilled();
        }

        return $result;
    }
275073
public function get($property_name = null)
    {
        if (!isset($property_name)) {
            return $this->property_values;
        }

        // @todo: This probably needs a refactor.
        // If this is a component itself just return the component.
        if (isset($this->property_values->$property_name)
            && is_object($this->property_values->$property_name)
            && get_class($this) == get_class($this->property_values->$property_name)) {
            return $this->property_values->$property_name;
        }
        // If this property is a component itself, just return it's get() method.
        if (isset($this->property_values->$property_name)
            && is_object($this->property_values->$property_name)
            && $this->property_values->$property_name instanceof PropertyInterface) {
            return $this->property_values->$property_name->get();
        } elseif (isset($this->property_values->$property_name)) {
            return $this->property_values->$property_name;
        }

        return;
    }
1166245
public function propertyExists($name)
    {
        $properties = $this->getProperties();
        return empty($properties) || in_array($name, $properties);
    }
1224105
public function __isset($name)
    {
        return array_key_exists($name, $this->_data) || array_key_exists($name, self::$_globalData);
    }
136977
public function hasElement($short_name)
    {
        return isset($this->elements[$short_name])
            ? $this->elements[$short_name]
            : false;
    }