classes/phing/tasks/system/condition/ReferenceExistsCondition.php
public function evaluate()
    {
        if ($this->refid === null) {
            throw new BuildException(
                "No ref attribute specified for reference-exists "
                . "condition"
            );
        }
        $refs = $this->project->getReferences();

        return !($refs[$this->refid] instanceof UnknownElement) && isset($refs[$this->refid]);
    }
public function evaluate()
    {
        if ($this->refid === null) {
            throw new BuildException(
                "No ref attribute specified for reference-exists "
                . "condition"
            );
        }
        $refs = $this->project->getReferences();

        return !($refs[$this->refid] instanceof UnknownElement) && isset($refs[$this->refid]);
    }
public function evaluate ( ) { if ( $ this -> refid === null ) { throw new BuildException ( "No ref attribute specified for reference-exists " . "condition" ) ; } $ refs = $ this -> project -> getReferences ( ) ; return ! ( $ refs [ $ this -> refid ] instanceof UnknownElement ) && isset ( $ refs [ $ this -> refid ] ) ; }
Check whether the reference exists.

@throws BuildException
Check whether the reference exists .