src/Charcoal/Model/Collection.php
public function has($key)
    {
        if ($this->isAcceptable($key)) {
            $key = $this->modelKey($key);
        }

        return array_key_exists($key, $this->objects);
    }
public function has($key)
    {
        if ($this->isAcceptable($key)) {
            $key = $this->modelKey($key);
        }

        return array_key_exists($key, $this->objects);
    }
public function has ( $ key ) { if ( $ this -> isAcceptable ( $ key ) ) { $ key = $ this -> modelKey ( $ key ) ; } return array_key_exists ( $ key , $ this -> objects ) ; }
Determine if an object exists in the collection by key.

@param  mixed $key The primary key to lookup.
@return boolean
Determine if an object exists in the collection by key .