lib/EditableContainer.php
public function has($id)
    {
        $id = (string) $id;

        $this->validateName($id);

        return isset($this->items[$id]);
    }
public function has($id)
    {
        $id = (string) $id;

        $this->validateName($id);

        return isset($this->items[$id]);
    }
public function has ( $ id ) { $ id = ( string ) $ id ; $ this -> validateName ( $ id ) ; return isset ( $ this -> items [ $ id ] ) ; }
Returns whether an item with given name is defined.

@param string $id The name of the item

@return bool

@throws InvalidArgumentException if the item name is invalid.
Returns whether an item with given name is defined .