public function isValid()
    {
        $valid = true;
        $this->validate();
        foreach ($this->getIterator() as $element) {
            if ($element instanceof ValidationAwareInterface) {
                $valid = $element->isValid()
                    ? $valid
                    : false;
            }
        }
        return $valid;
    }
public function isValid()
    {
        $valid = true;
        $this->validate();
        foreach ($this->getIterator() as $element) {
            if ($element instanceof ValidationAwareInterface) {
                $valid = $element->isValid()
                    ? $valid
                    : false;
            }
        }
        return $valid;
    }
public function isValid ( ) { $ valid = true ; $ this -> validate ( ) ; foreach ( $ this -> getIterator ( ) as $ element ) { if ( $ element instanceof ValidationAwareInterface ) { $ valid = $ element -> isValid ( ) ? $ valid : false ; } } return $ valid ; }
Checks if all elements are valid

@return mixed
Checks if all elements are valid