returns TRUE if property is multiple.

@return bool
167898
public function getIsMultiple()
    {
        $minOccurs = $this->getMinOccurs();
        $maxOccurs = $this->getMaxOccurs();

        if (is_null($minOccurs) && is_null($maxOccurs)) {
            // if no occurs attributes are set it defaults to false
            return false;
        }

        if (0 === $minOccurs && 1 === $maxOccurs) {
            // this one allows to have an optional field
            return true;
        }

        if (1 === $minOccurs && 1 === $maxOccurs) {
            // if the occurences have a high and low limit of 1 it should be displayed as single
            return false;
        }

        // if minOccurs is set a value of 1 is enough, because maxOccurs would be considered "unbound" when null
        return $minOccurs >= 1 || $maxOccurs > 1;
    }
478308
public boolean isMultiSelectable() {
        return ((!isInPk() && !isInFk() && !isVersion()) || (isSimplePk() && jpa.isManuallyAssigned())) //
                && (isBoolean() || isEnum() || isString() || isNumeric());
    }
415290
public function checkDuplicates()
    {
        $shopNumbers = array();
        $files       = scandir(dirname($this->buildConfigFilePath()));

        foreach ($files as $file) {
            if (!is_file($this->buildConfigFilePath($file))) {
                continue;
            }

            $shopgate_config = null;
            /** @noinspection PhpIncludeInspection */
            include($this->buildConfigFilePath($file));
            if (isset($shopgate_config) && isset($shopgate_config['shop_number'])) {
                if (in_array($shopgate_config['shop_number'], $shopNumbers)) {
                    return true;
                } else {
                    $shopNumbers[] = $shopgate_config['shop_number'];
                }
            }
        }

        return false;
    }
652937
public function hasFields()
    {
        if ($this->hasProperty()) {
            $property = $this->property();
            if ($property instanceof StorablePropertyInterface) {
                return (count($property->fieldNames()) > 0);
            } else {
                return true;
            }
        }

        return false;
    }
464600
public function isMultiton($identifier)
    {
        $result = false;
        $class  = $this->getClass($identifier);

        if($class) {
            $result = array_key_exists(__NAMESPACE__.'\ObjectMultiton', class_implements($class));
        }

        return $result;

    }
288399
public function hasProperty($property)
    {
        return
            property_exists($this, $property)
            ||
            $this->hasAttribute($property)
            ||
            $this->hasData($property);
    }
120729
public function isEmpty()
    {
        foreach ($this->properties as $property => $default) {
            if ($property == 'path') {
                if (count($this->path)) {
                    return false;
                }
                continue;
            }

            if ($this->$property) {
                return false;
            }
        }

        return true;
    }
644372
public function isMultilang()
	{
		// Flag to avoid doing multiple database queries.
		static $tested = false;

		// Status of language filter plugin.
		static $enabled = false;

		// If being called from the front-end, we can avoid the database query.
		if (\App::isSite())
		{
			return \App::get('language.filter');
		}

		// If already tested, don't test again.
		if (!$tested)
		{
			// Determine status of language filter plug-in.
			$db = \App::get('db');
			$query = $db->getQuery()
				->select('enabled')
				->from('#__extensions')
				->whereEquals('type', 'plugin')
				->whereEquals('folder', 'system')
				->whereEquals('element', 'languagefilter');
			$db->setQuery($query->toString());

			$enabled = $db->loadResult();
			$tested  = true;
		}

		return $enabled;
	}
140102
public function hasScalarKeys() {
    if ($this->key instanceof ScalarNode) {
      return $this->array instanceof ArrayLookupNode ? $this->array->hasScalarKeys() : TRUE;
    }
    else {
      return FALSE;
    }
  }
516919
public function isMultiPart()
    {
        $contentType = $this->getContentType();
        if ($contentType !== null) {
            // casting to bool, preg_match returns 1 for true
            return (bool) (preg_match(
                '~multipart/\w+~i',
                $contentType->getValue()
            ));
        }
        return false;
    }
959032
public function has_more()
    {
        if ($this->_pointer + 1 == count($this->_collection)) {
            return false;
        }
        ++$this->_pointer;

        return true;
    }
1181030
public function hasChildren(): bool
    {
        $children = (($this->getRgt() - $this->getLft()) - 1) / 2;
        return (0 === $children) ? false : true;
    }
763397
public function isMultiDimensional(): bool
    {
        if (sizeof($this->bag) === 0) {
            return false;
        }

        return count($this->bag) !== count($this->bag, COUNT_RECURSIVE);
    }
870409
public function __isset($property)
    {
        if (null !== $this->findProperty($property)) {
            return true;
        } else {
            return isset($this->$property);
        }
    }
685977
public function isProperty()
    {
        $returnValue = (bool) false;
        foreach($this->getTypes() as $type){
        	if($type->getUri() == OntologyRdf::RDF_PROPERTY){
        		$returnValue = true;
        		break;
        	}
        }
        return (bool) $returnValue;
    }
324733
public function has($property)
    {
        if (is_array($property)) {
            foreach ($property as $item) {
                if (is_a($this->{$item}, '\\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage')) {
                    return ($this->{$item}->count()) ? true : false;
                } else {
                    return (!empty($this->{$item})) ? true : false;
                }
            }
        } else {
            if (is_a($this->{$property}, '\\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage')) {
                return ($this->{$property}->count()) ? true : false;
            } else {
                return (!empty($this->{$property})) ? true : false;
            }
        }
    }
359
def is_multiple_of(ref):
    
    def is_multiple_of_ref(x):
        if x % ref == 0:
            return True
        else:
            raise IsNotMultipleOf(wrong_value=x, ref=ref)
            # raise Failure('x % {ref} == 0 does not hold for x={val}'.format(ref=ref, val=x))

    is_multiple_of_ref.__name__ = 'is_multiple_of_{}'.format(ref)
    return is_multiple_of_ref