private function idExists($id, &$yAlreadySet, &$realNameId) {
        $yFound = isset($id[3]) && $id[3] === 'y';
        $idVarAdded = substr($id, 0, -1) . 'y';

        if (isset($this->identifiersAi[$id])) {
            if ($yFound) {
                $yAlreadySet = false;
            }

            $realNameId = $id;
            return true;
        } elseif (!$yFound && isset($this->identifiersAi[$idVarAdded])) {
            /* if the id don't exist, we try to find this id with "y" at the last char */
            $yAlreadySet = true;
            $realNameId = $idVarAdded;
            return true;
        }

        return false;
    }
private function idExists($id, &$yAlreadySet, &$realNameId) {
        $yFound = isset($id[3]) && $id[3] === 'y';
        $idVarAdded = substr($id, 0, -1) . 'y';

        if (isset($this->identifiersAi[$id])) {
            if ($yFound) {
                $yAlreadySet = false;
            }

            $realNameId = $id;
            return true;
        } elseif (!$yFound && isset($this->identifiersAi[$idVarAdded])) {
            /* if the id don't exist, we try to find this id with "y" at the last char */
            $yAlreadySet = true;
            $realNameId = $idVarAdded;
            return true;
        }

        return false;
    }
private function idExists ( $ id , & $ yAlreadySet , & $ realNameId ) { $ yFound = isset ( $ id [ 3 ] ) && $ id [ 3 ] === 'y' ; $ idVarAdded = substr ( $ id , 0 , - 1 ) . 'y' ; if ( isset ( $ this -> identifiersAi [ $ id ] ) ) { if ( $ yFound ) { $ yAlreadySet = false ; } $ realNameId = $ id ; return true ; } elseif ( ! $ yFound && isset ( $ this -> identifiersAi [ $ idVarAdded ] ) ) { /* if the id don't exist, we try to find this id with "y" at the last char */ $ yAlreadySet = true ; $ realNameId = $ idVarAdded ; return true ; } return false ; }
Checks if an id exists.

@param string $id
@param bool $yAlreadySet
@param string $realNameId
@return bool
Checks if an id exists .