diff --git a/src/Omniphx/Forrest/Client.php b/src/Omniphx/Forrest/Client.php index bdfb987..e763b09 100644 --- a/src/Omniphx/Forrest/Client.php +++ b/src/Omniphx/Forrest/Client.php @@ -703,8 +703,12 @@ private function setOptions($arguments) { $options = []; if (empty($arguments)) return $options; - $this->setArgument($arguments[0], $options); - $this->setArgument($arguments[1], $options); + if(!empty($arguments[0])) { + $this->setArgument($arguments[0], $options); + } + if(!empty($arguments[1])) { + $this->setArgument($arguments[1], $options); + } return $options; }