public function hasElement($name)
    {
        foreach($this->elements as $element){
            if($element->getName() == $name) {
                return true;
            }
        }

        return false;
    }
public function hasElement($name)
    {
        foreach($this->elements as $element){
            if($element->getName() == $name) {
                return true;
            }
        }

        return false;
    }
public function hasElement ( $ name ) { foreach ( $ this -> elements as $ element ) { if ( $ element -> getName ( ) == $ name ) { return true ; } } return false ; }
Has an element of the form identified by it's name

@param  string $name

@return bool
Has an element of the form identified by it s name