diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 501c55a9..97f7d979 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -147,7 +147,7 @@ abstract class Pool extends Component public function hasItem(string $name): bool { if (isset($this->_items[$name])) { - return $this->_items[$name]->isEmpty(); + return !$this->_items[$name]->isEmpty(); } return false; }