public function exists()
    {
        if (! array_key_exists($this->primaryKey, $this->attributes)) {
            return false;
        }

        return ! empty($this->attributes[$this->primaryKey]);
    }
public function exists()
    {
        if (! array_key_exists($this->primaryKey, $this->attributes)) {
            return false;
        }

        return ! empty($this->attributes[$this->primaryKey]);
    }
public function exists ( ) { if ( ! array_key_exists ( $ this -> primaryKey , $ this -> attributes ) ) { return false ; } return ! empty ( $ this -> attributes [ $ this -> primaryKey ] ) ; }
Checks if primaryKey holds a value.

@return bool
Checks if primaryKey holds a value .