protected function isNameUnique($name)
    {
        foreach (self::$SHEETS_NAME_USED[$this->associatedWorkbookId] as $sheetIndex => $sheetName) {
            if ($sheetIndex !== $this->index && $sheetName === $name) {
                return false;
            }
        }

        return true;
    }
protected function isNameUnique($name)
    {
        foreach (self::$SHEETS_NAME_USED[$this->associatedWorkbookId] as $sheetIndex => $sheetName) {
            if ($sheetIndex !== $this->index && $sheetName === $name) {
                return false;
            }
        }

        return true;
    }
protected function isNameUnique ( $ name ) { foreach ( self :: $ SHEETS_NAME_USED [ $ this -> associatedWorkbookId ] as $ sheetIndex => $ sheetName ) { if ( $ sheetIndex !== $ this -> index && $ sheetName === $ name ) { return false ; } } return true ; }
Returns whether the given name is unique.

@param string $name
@return bool TRUE if the name is unique, FALSE otherwise.
Returns whether the given name is unique .