public function hasDeterminedParent()
    {
        // There is more than 1 fight, should be Preliminary
        if (count($this->fighters()) > 1) {
            return false;
        }
        foreach ($this->children as $child) {
            if (count($child->fighters()) > 1) {
                return false;
            }
        }

        return true;
    }
public function hasDeterminedParent()
    {
        // There is more than 1 fight, should be Preliminary
        if (count($this->fighters()) > 1) {
            return false;
        }
        foreach ($this->children as $child) {
            if (count($child->fighters()) > 1) {
                return false;
            }
        }

        return true;
    }
public function hasDeterminedParent ( ) { // There is more than 1 fight, should be Preliminary if ( count ( $ this -> fighters ( ) ) > 1 ) { return false ; } foreach ( $ this -> children as $ child ) { if ( count ( $ child -> fighters ( ) ) > 1 ) { return false ; } } return true ; }
Check if we are able to fill the parent fight or not
If one of the children has c1 x c2, then we must wait to fill parent.

@return bool
Check if we are able to fill the parent fight or not If one of the children has c1 x c2 then we must wait to fill parent .