TODO: think about this.

@return false
322040
protected boolean semanticallyEquivalent(BioPAXElement o)
	{
		if (o!= null && o instanceof openControlledVocabulary)
		{
			openControlledVocabulary that =
				(openControlledVocabulary) o;

			return
				this.equals(that) ||
				hasCommonTerm(that) ||
				!this.findCommonUnifications(that).isEmpty();
		}
		return false;
	}
456462
public function build()
    {
        $this->dataObject = array();
        foreach ($this->buildItems['collection'] as $builder) {
            if (!$builder->build()) {
                return false;
            } else {
                $this->dataObject[] = $builder->getResult();
            }
        }

        return true;
    }
998986
public function isCurrent()
    {
        if (AVUser::getCurrentUser() && $this->getObjectId())
        {
            if ($this->getObjectId() == AVUser::getCurrentUser()->getObjectId())
            {
                return true;
            }
        }

        return false;
    }
749884
public function valid()
	{
		// Check the current position.
		if (!is_scalar($this->current) || !isset($this->objects[$this->current]))
		{
			return false;
		}

		return true;
	}
1007287
public function current() {
		if (!$this->_started) {
			$this->rewind();
		}
		if (!$this->_valid) {
			return false;
		}
		return current($this->_data);
	}
1080523
public function valid()
    {
        //echo 'v';
        $v = $this->currentIterator->valid();
        if (!$v) {
            do {
                $this->iterators->next();
                if ($this->iterators->valid()) {
                    $this->currentIterator = $this->iterators->current();
                    $this->currentIterator->rewind();
                }
            } while ($this->iterators->valid() && !$this->currentIterator->valid());

            if (!$this->currentIterator->valid()) {
                return false;
            } else {
                return true;
            }
        }

        return $v;
    }
1240592
public function current()
    {
        $k = key($this->ids);
        if (null === $k) {
            return false;
        }

        if (count($this->ids) == 1) {
            return $this;
        }

        if (!isset($this->_ich[$k])) {
            $this->_ich[$k] = new self($this->doc, array($k => $this->ids[$k]));
        }

        return $this->_ich[$k];
    }
545035
public function boolean()
    {
        $message = ['%s is {{not|}} a boolean', $this->value];
        $this->assert(is_bool($this->value), $message);

        return $this;
    }
18930
public function hasPost()
    {
        if (func_num_args() == 0) {
            return !empty($this->post);
        }

        foreach (func_get_args() as $key) {
            if (!$this->hasParam($this->post, $key)) {
                return false;
            }
        }

        return true;
    }
735539
public function consume()
	{
		if (isset($this->data[$this->position]))
		{
			$this->consumed .= $this->data[$this->position];
			return $this->data[$this->position++];
		}
		else
		{
			return false;
		}
	}
1078023
public function false()
    {
        $message = ['%s is {{not|}} false', $this->value];
        $this->assert(($this->value === false), $message);

        return $this;
    }
596274
public function valid()
    {
        if (null === $this->currentDate) {
            return false;
        }
        if (!is_null($this->count)) {
            return $this->counter < $this->count;
        }

        return is_null($this->until) || $this->currentDate <= $this->until;
    }
1223281
public function valid()
    {
        $key = key($this->storage);

        if ($key === false || $key === null) {
            return false;
        }

        return isset($this->storage[$key]);
    }
742589
public function build()
    {
        $this->dataObject = [];
        foreach ($this->buildItems as $name => $value) {
            if ($value instanceof BuilderInterface) {
                if (!$this->buildItems[$name]->build()) {
                    return false;
                }
                $this->dataObject[$name] = $this->buildItems[$name]->getResult();
            } elseif (is_callable($value)) {
                $this->dataObject[$name] = $value();
            } else {
                $this->dataObject[$name] = $this->buildItems[$name];
            }
        }

        return true;
    }
1085664
public function valid()
    {
        if (key($this->_data) === null) {
            return false;
        }

        $current = current($this->_data);
        while (!$current->value()) {
            $current = $this->next();
            if (key($this->_data) === null) {
                return false;
            }
        }
        return true;
    }
546694
public function boolean() {
        $this->check_role = 'boolean';
        $result = in_array($this->value, [true, false, 0, 1, '0', '1'], true);
        $this->checkResult($result);
        return $this;
    }
759489
public function isSquare()
    {
        if (!$this->isValid()) {
            return false;
        }
        return round($this->first) == round($this->second);
    }