public function validConditions()
    {
        if (!count($this->conditions)) {
            return true;
        }

        foreach ($this->conditions as $condition) {
            if (!$condition->isValid()) {
                return false;
            }
        }

        return true;
    }
public function validConditions()
    {
        if (!count($this->conditions)) {
            return true;
        }

        foreach ($this->conditions as $condition) {
            if (!$condition->isValid()) {
                return false;
            }
        }

        return true;
    }
public function validConditions ( ) { if ( ! count ( $ this -> conditions ) ) { return true ; } foreach ( $ this -> conditions as $ condition ) { if ( ! $ condition -> isValid ( ) ) { return false ; } } return true ; }
Check if all conditions are valid

@return boolean
Check if all conditions are valid