public function has($identification, $type = 'uid')
{
if ($type == "uid") {
return Arr::has($this->items, $identification);
} else {
return Arr::where((array) $this->items, function ($key, $value) use($identification, $type) {
if (property_exists($value, $type)) {
return false;
}
return $value->{$type} == $identification;
});
}
}